<i>Heap out-of-bounds read and NULL dereference in `clock` on malformed `TZData`</i> status still Open with 3 other changes
by
.
D 2026-11-05T19:07:06.458
J icomment Reviewed\s[01cd1ca85c].\sWith\sASan\sand\sUBSan,\sthe\sthree\sPoCs\sand\sthe\ssafe-interp\sone\snow\sgive\s"malformed\stime\szone\sdata",\sand\sclock.test\spasses.\n\nOne\scase\sis\sstill\sopen:\sthe\s:GMT\sshortcut\sin\sTclConvertUTCToLocal()\sreads\sthe\sfirst\srow\swithout\schecking\srowc,\sand\sdoes\snot\scheck\sthat\selement\s3\sexists.\sAfter\s"set\s::tcl::clock::TZData(:GMT)\s{}"\sthe\snext\s"clock\sformat\s0\s-gmt\s1"\scrashes\sin\sTcl_ListObjIndex();\swith\sa\s3-element\srow\sthe\sname\sis\sNULL\sand\s%Z\scrashes\son\sit.\sOnly\strusted\sscripts\scan\sreach\sit.\n\nMinor:\sthe\schanges.md\slink\shas\sa\sstray\sopening\sbracket\s(fixed\sin\s[e8180fc66e]),\sand\sclock-72.0..72.2\sleave\sTZData(:bad)\sbehind.\n\n9.0\sand\s8.6\sneed\sthe\schecks\stoo.\sThis\sdoes\snot\scover\sthe\sother\shalf\sof\sthe\sreport:\son\strunk\sthe\s::tcl::clock::*\shelpers,\sincluding\sgetenv,\sare\sstill\svisible\sin\ssafe\sinterps.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 813699148d19177469c94023f3dc739cbd2d9f8d
U serhiy.storchaka
Z a5148434f0ad7f3fdfef2729223fadd3