Skip to content
Tcl Source Code Artifact [556dc506b6]
Login

Artifact [556dc506b6]

Artifact 556dc506b6efff160ae3d17c5df199c32c05c9d38359506e38dc9f12834079d2:

Ticket change [556dc506b6] - Ticket [c9663296fd31fbb2|c9663296fd] <i>GrowStringBuffer and GrowUnicodeBuffer do not check for overflows</i> status still Open with 5 other changes by apnadkarni on 2023-04-23 02:51:55.
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