<i>GrowStringBuffer and GrowUnicodeBuffer do not check for overflows</i> status still Open with 5 other changes
by
.
D 2023-04-23T02:51:55.722
J comment On\sreallocations,\s`GrowStringBuffer`\sdoubles\sthe\srequested\ssize\swithout\schecking\sfor\sinteger\soverflow.\sThis\sapplies\sto\s8.7\sand\s9.0\s(may\sbe\seven\searlier).\r\n\r\nOn\sthe\ssecond\sattempt,\sit\slimits\sthe\ssize\sto\s`INT_MAX`\swhich\sis\sno\slonger\sthe\slimit\sin\s64-bit\s9.0\s(should\sbe\sTCL_SIZE_MAX).\r\n\r\nJust\snoting\sfor\snow\sfor\sfuture\scorrection.\sThe\sdoubling\severy\stime\salso\shas\sto\sbe\sreconsidered\sas\sit\swastes\sa\slot\sof\smemory\sonce\ssizes\sget\slarge\s(bigdata\stests)\scausing\smemory\sexhaustion\spanics\swhen\sthere\sshould\snot\sbe.\r\n\r\nSame\sis\strue\sof\sGrowUnicodeBuffer
J login apnadkarni
J mimetype text/plain
J severity Severe
J title GrowStringBuffer\sand\sGrowUnicodeBuffer\sdo\snot\scheck\sfor\soverflows
K c9663296fd31fbb2fa1ff1cf019b59f432983516
U apnadkarni
Z a741e66c726f7fb3946996d416cd3c7e