<i>buffer overflow in AppendUnicodeToUnicode() -> SEGFAULT</i> status still Open with 4 other changes
by
.
D 2009-01-09T17:45:27
J icomment ok,\slooked\sinto\s8.5\sagain:\sit\snow\sseems\sto\sbe\ssome\skind\sof\sinteger\soverflow,\sor\ssomething\sin\sthis\sdirection.\n\nMy\sLinux\sbuild\sis\s64\sbit,\sthat\smeans\ssizeof(size_t)\sis\s8,\swhile\ssizeof(int)\sis\s4.\n\nThe\score\sdump\snow\sshows:\n\n-\sthe\smemcpy()\scall\sin\sAppendUnicodeToUnicodeep()\scrashes\sagain:\n\s\s#0\s\s0x00007febad876dd3\sin\smemcpy\s()\sfrom\s/lib64/libc.so.6\n\s\s#1\s\s0x00007febae0a82d1\sin\sAppendUnicodeToUnicodeRep\s(objPtr=0x625990,\sunicode=0x63bafc,\sappendNumChars=4096)\n\s\s\s\s\s\sat\s/home/makr/cvs/tccvs/tcl-8.5/unix/../generic/tclStringObj.c:1336\n\n-\sthe\sother\svalues\sare:\n\s\s(gdb)\sprint\s*stringPtr\n\s\s$2\s=\s{numChars\s=\s1073737728,\sallocated\s=\s16384,\suallocated\s=\s4294967296,\shasUnicode\s=\s1,\sunicode\s=\s{222,\s173}}\n\s\s(gdb)\sprint\snumChars\n\s\s$3\s=\s1073741824\n\n-\s$3\s==\s1<<30\s==\s1GB\n\n-\s(gdb)\sprint\snumChars\s-\sstringPtr->numChars\n\s\s$6\s=\s4096\n\n-\sstringPtr->uallocated\s==\s1<<32\s==\s4GB\swhich\smeans\sthe\sattemptckrealloc()\shas\snot\sfailed\n\nso\sfar\smy\sobservations,\smaybe\sI\shave\stime\sto\scome\sback\sto\sit\slater\stoday\s...\n
J login matzek
J mimetype text/plain
J username matzek
K 2494093fffffffffffffffffffffffffffffffff
U matzek
Z 47e3dbb432444e7640398d4999c4ff96