aboutsummaryrefslogtreecommitdiff
path: root/base/plugins.h
diff options
context:
space:
mode:
authorThierry Crozat2010-06-19 15:35:21 +0000
committerThierry Crozat2010-06-19 15:35:21 +0000
commit721db3eccb82e27d1169a46b282975534ce106fe (patch)
tree80a0d1508f00e2bb35382274369f5d8716ee9369 /base/plugins.h
parent32668b553fe69fc8cea5afc60d5f82abdc9a4fb8 (diff)
downloadscummvm-rg350-721db3eccb82e27d1169a46b282975534ce106fe.tar.gz
scummvm-rg350-721db3eccb82e27d1169a46b282975534ce106fe.tar.bz2
scummvm-rg350-721db3eccb82e27d1169a46b282975534ce106fe.zip
Fix an issue in String::ensureCapacity() when the string is shared. It could allocate two much memory as it was at least doubling the current capacity even when this one was sufficient.
It fixes a crash in GUI::Widget::cleanupHotkey() as the capacity of the string was doubled at each iteration once it was too long for the internal storage (only to add one character to the string). This ended up in a bad_alloc exception after a few iterations. svn-id: r50050
Diffstat (limited to 'base/plugins.h')
0 files changed, 0 insertions, 0 deletions