<i>Memory corruption false positive with TCL_MEM_DEBUG</i> status still Open with 4 other changes
by
.
D 2026-10-18T10:03:22.464
J foundin 9.0.5,\s9.1.0
J icomment [f505b17748]\schanged\sthe\sexpected\srefCount\sof\sfreed\sobjects\sto\s<tt>0xE8...</tt>,\sbut\s<tt>Tcl_DbCkfree</tt>\sstill\sfills\sfreed\smemory\swith\s<tt>0x61</tt>,\sso\sthe\s"decrementing\srefCount\sof\spreviously\sdisposed\sobject"\spanic\scan\sno\slonger\sfire;\sa\suse-after-free\sdecrement\sis\scaught\sonly\sby\sthe\sthreaded\scheck\s("Tcl_Obj\sallocated\sin\sanother\sthread",\swithout\sfile\sand\sline).\sThe\s<tt>0x61616161</tt>\schecks\sin\stclDisassemble.c\sand\stclPreserve.c\snever\smatched\son\s64-bit\seither.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=memdebug-freed-marker|memdebug-freed-marker]:\s<tt>Tcl_DbCkfree</tt>\sfills\sfreed\smemory\swith\s<tt>0xE8</tt>,\sas\ssuggested\shere,\sand\sall\sfive\schecks\suse\sthe\ssame\smarker.\sA\suse-after-free\sdecrement\snow\spanics\swith\sthe\sfile\sand\sline\sagain.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 7e3f26c7481986b6c90359fd24d713a5c96c55f9
U serhiy.storchaka
Z e94f8b046d2ec0c58abb6823ce902dd4