Skip to content
Tcl Source Code Artifact [6175cfbe1a]
Login

Artifact [6175cfbe1a]

Artifact 6175cfbe1acb344064ec50dd1253c005f0a5322bcb6a10679a3f89dd2889a93c:

Ticket change [6175cfbe1a] - New ticket [c9663296fd31fbb2|c9663296fd] <i>GrowStringBuffer does not check for overflows</i>. by apnadkarni on 2023-04-23 02:49:00.
D 2023-04-23T02:49:00.364
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
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.
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Minor
J status Open
J submitter apnadkarni
J subsystem 41.\sMemory\sAllocation
J title GrowStringBuffer\sdoes\snot\scheck\sfor\soverflows
J type Bug
K c9663296fd31fbb2fa1ff1cf019b59f432983516
U apnadkarni
Z cd49f859193ebd0c86cec69aabb7dad8