Skip to content
Tcl Source Code Artifact [cf94059fd5]
Login

Artifact [cf94059fd5]

Artifact cf94059fd500490ada0925dd829481d308331b40:

Ticket change [cf94059fd5] - Ticket [2494093fffffffff|2494093fff] <i>buffer overflow in AppendUnicodeToUnicode() -&gt; SEGFAULT</i> status still Closed with 4 other changes by matzek on 2009-01-15 16:03:58.
D 2009-01-15T16:03:58
J icomment From\sa\smail\sI\ssent\sto\sthe\stcl-core\slist:\n\nI\swant\sto\sgive\stwo\spoints\sto\syour\sattention\sthat\sconcern\sme\swith\sthe\sfix\sof\sthis\sbug.\sBut\sfirst\sthank\syou\svery\smuch\sfor\shelping\sto\sfind\sthe\sproblem\sand\sthen\sfixing\sit\spromptly!\n\n1)\sThe\sfix\sas\snow\simplemented\srestricts\sthe\scontent\sof\svariables\sto\sINT_MAX/4\swhich\sis\s512MB!\sTo\smy\smind\sthis\sis\scomparatively\ssmall\sand\sshould\sbe\sdocumented\ssomewhere.\sPlease\snotice\sthat\sthis\sis\salso\shalf\sthe\ssize,\sof\swhat\swas\spossible\sin\s8.4.19\s/\s8.5.6.\n\n2)\sIn\stclStringObj.c\sis\sa\slengthy\sdocumentation\sof\sthe\smemory\sallocation\salgorithm\sfor\sstrings.\sThis\sis\snow\sobsolete\sin\sthe\scase\swhen\smore\sthan\sINT_MAX/4\smemory\sis\sfree\sand\scould\sbe\sallocated.\sAs\sin\sthis\scase\swe\spanic()\sbefore\seven\scoming\sto\sthe\sattemptckalloc().\n\nWhat\syou\sshould\smake\swith\sthis\sinformation?\sWell,\sI\sdon't\sknow.\sI\sjust\swanted\sto\smake\ssure\sit\sdoesn't\sget\slost\sand\ssomeone\shas\sto\slearn\sit\sthe\shard\sway.\sI\scan\slive\swith\sthe\sfix\snow.\n\nWhere\sis\sthe\suse\scase\sthat\sneeds\sso\smuch\smemory?\sConsider\svfs::memchan.\sThis\sis\swhere\sI\sstumbled\sover\sthe\sissue.\sI\sthought\sI\suse\svfs::memchan\sto\sbe\sable\sto\stransparently\suncompress\sand\sevaluate\sthe\scrc\sof\sarchives...\n
J login matzek
J mimetype text/plain
J username matzek
K 2494093fffffffffffffffffffffffffffffffff
U matzek
Z 8764e66d59bdfe8b4c491babadd0f6a7