.
D 2023-05-02T10:39:56.219
J closer nobody
J icomment Reopening\sbecause\sI\swould\sstill\slike\sfor\sthis\sto\sbe\sfixed\sin\s8.6\sand\s8.7.\r\n\r\nSee\sattached\spatch\sfor\score-8-6-branch.\s(For\score-8-branch,\s[3da8d2069c69]\scan\sbe\sapplied\sdirectly\salong\swith\scopying\sover\sscan-13.9.\sBut\sfor\s8.6,\sI\sam\snot\ssure\sanyone\swould\swant\sto\sbring\sback\scompat/strtoull.c,\swhich\swas\sremoved\sin\s2007.)\sI\sagree\sthat\sstoring\sthe\sresult\sof\s<tt>strtoul()</tt>\sin\sa\s<tt>signed\sint</tt>\scaused\sseveral\sissues,\sincluding\slarge\sarguments\sbeing\serroneously\saccepted\sdue\sto\struncation\sfrom\s64-bit\sto\s32-bit,\sthe\scomment\sabout\s<tt>value</tt>/<tt>longval</tt>\sbeing\s“guaranteed\sto\sbe\s>\s0”\snot\sbeing\strue,\sand\sthe\ssigned\sinteger\soverflow\sand\sthe\sscan-13.9\scrash.\r\n\r\nTo\sclarify,\sthe\soverflow\sis\sdetected\sby\sUBSan\s(UndefinedBehaviorSanitizer)\srather\sthan\sASan\s(AddressSanitizer);\sconsider\srevising\sthe\scheck-in\smessage\sfor\s[787712b4c733]\sand\s[3da8d2069c69].\r\n\r\nASan,\slike\sValgrind,\sis\sreally\sonly\suseful\swith\s<tt>PURIFY</tt>\sdefined.\sI\susually\sconfigure\swith\sboth\sUBSan\sand\sASan\senabled,\susing\s<tt>CFLAGS='-DPURIFY\s-fsanitize=address\s-fsanitize=undefined'\sLDFLAGS='-fsanitize=address'\s./configure\s--enable-symbols\s…</tt>\s;\sI\shaven’t\shad\sto\sspecify\s<tt>-fsanitize=undefined</tt>\sin\s<tt>LDFLAGS</tt>\sso\sfar.\sI\salso\sapply\sa\sworkaround\sfor\s[ac874937c5].\sI\sthen\susually\srun\swith\s<tt>ASAN_OPTIONS=allocator_may_return_null=1:detect_leaks=0:malloc_context_size=99</tt>.
J login chrstphrchvz
J mimetype text/x-fossil-wiki
J resolution None
J status Open
K ab123cfd3d02fb1198f18261c9705e09b4797b99
U chrstphrchvz
Z d01d5eb528e2e09def1c5d043d7a0310