<i>Segmentation fault due to int overflow in GrowEvaluationStack</i> status still Open with 4 other changes
by
.
D 2017-05-29T14:35:16.148
J icomment This\sgoing\sto\sthe\sarray\sof\sindices\sthat\swill\sbe\sused\sfor\ssorting,\sallocated\svia\s"TclStackAlloc(interp,\ssizeof(int)\s*\ssortInfo.indexc)"\swhich\sindeed\svery\sdoubtful\sby\slsort,\sthat\scan\ssort\sreally\slarge\slists.\r\n\r\nInstead\sof\sthe\srewriting\sof\sGrowEvaluationStack/TclStackAlloc\srather\sthe\sckalloc\sshould\sbe\sused\shere\sinstead\s(at\sleast\sby\slarge\ssize\sof\sthe\ssorting\slist).\r\n\r\nI\swant\sfix\sit\sright\saway...\r\n\r\nBTW\sIf\ssomeone\snevertheless\swant\sto\srewrite\s"int"\sas\s"ptrdiff_t",\sthen\sthe\s"int\snumBytes"\sfor\spair\sTclStackAlloc/TclStackRealloc\sshould\sbe\sthen\salso\srewritten\sas\s"size_t\snumBytes".
J login sebres
J mimetype text/plain
J subsystem 17.\sCommands\sI-L
K a3fb3356b76ec4a853d1b86aadc08675f8bef359
U sebres
Z 0cd445fba6d6d5ace299697b4839042b