<i>passing pointer to uninitialized memory leads Tcl_UniCharToUtf() to corrupt data</i> status still Pending with 3 other changes
by
.
D 2023-04-26T13:00:31.325
J icomment Jan,\sfirst\syou\sget\sdefensive\sand\scall\sthis\sa\snon-issue,\sthen\syou\sspam\r\nthe\sticket\swith\stest\sresults\sfrom\sa\swork-in-progress\sbranch\sin\san\r\nattempt\sto\sdistrct\sfrom\sthe\sreal\sissue:\s\sRandom\sdata\sin\suninitialized\r\nmemory\sare\scausing\sthe\s"format-2.19"\stest\sto\sfail\sunder\sa\sbuild\sof\sthe\r\npyk-Tcl_AppendObjToObj\sbranch\sconfigured\swith\s"TCL_UTF_MAX\s=\s3"?\r\n\r\nDid\syou\seven\snotice\sthat\sthose\sfailing\stests\shard-coded\sa\sdependence\son\r\nuninitialized\sdata,\sand\sjust\sneed\sto\sbe\sadjusted\sfor\sthe\sfact\sthat\sthe\r\nmemory\sarea\sis\snow\sinitialized?\r\n\r\nI'm\snot\sin\sfavor\sof\sthe\smemset()\ssolution.\s\sI'm\sin\sfavor\sof\sdeleting\sa\r\nwhole\sbunch\sof\s"TCL_UTF_MAX\s=\s3"\scode.
J login pooryorick
J mimetype text/x-fossil-wiki
K f5eadcbf9a6b1b4cff5aaf0da5aa5706430dfb7c
U pooryorick
Z ac734fded9d59af60274d560abf13107