.
D 2023-10-13T08:35:33.225
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment <tt>Tcl_Free()</tt>\sis\snot\sa\s<tt>Tcl_LimitHandlerDeleteProc</tt>.\sNothing\sin\score\sTcl\scalls\s<tt>Tcl_LimitAddHandler()</tt>\swith\s<tt>TCL_DYNAMIC</tt>\sas\sthe\s<tt>deleteProc</tt>,\sbut\sI\spredict\sthat\sdoing\sso\swould\scause\sUBSan\s<tt>-fsanitize=function</tt>\serrors\swith\sthe\sfollowing:\r\n\r\n<pre>\r\n<span\sstyle="font-weight:bold"><span\sstyle="color:firebrick">runtime\serror:</span>\scall\sto\sfunction\sTclpFree\sthrough\spointer\sto\sincorrect\sfunction\stype\s'void\s(*)(void\s*)'</span>\r\n</pre>\r\n\r\nA\sworkaround\swould\sbe\sto\suse\sa\swrapper\sfunction;\ssee\sattached\spatch.
J foundin 8.6.13
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J private_contact 6133eb3026f9b10aa9b7b48da92ae2834fc225b0
J resolution None
J severity Minor
J status Open
J submitter chrstphrchvz
J subsystem 20.\s[interp]
J title tclInterp.c:\sTcl_Free()\scalled\sthrough\spointer\sof\sincorrect\stype
J type Bug
K 52dbc4b3f8ef52c40eb8dd2080c5de48a14cd49c
U chrstphrchvz
Z 1ec77dda497bd3474cebb86e9c5c7039