<i>boundary case bug in [string is integer]</i> status still Open with 3 other changes
by
.
D 2022-05-21T21:29:10.756
J icomment This\sbehavior\soccurs\swhen\snon-compiled\s<tt>StringIsCmd()</tt>\sis\sinvoked\s(which\sseems\sto\sbe\swhenever\sthe\sclass\sisn’t\sspecified\sas\sa\sliteral);\sby\sthe\stime\sit\sis\sinvoked,\sthe\svalue\salready\shas\sa\sbignum\srepresentation,\swhich\s<tt>Tcl_GetIntFromObj()</tt>\s→\s<tt>Tcl_GetLongFromObj()</tt>\sextract\s-1\sfrom\srather\sthan\sreturn\s<tt>TCL_ERROR</tt>\sfor.\r\n\r\nSo\sI’m\sinclined\sto\sthink\sthis\sis\sa\sbug\sin\s<tt>Tcl_GetIntFromObj()</tt>\sand/or\s<tt>Tcl_GetLongFromObj()</tt>,\saffecting\sany\sbignum\svalue\swithin\s[18446744069414584320,18446744073709551615],\si.e.\s[(2**64-1)-(2**32-1),2**64-1]\s(at\sleast\son\sLP64).\r\n\r\nThere\sshould\sprobably\sbe\sa\sunit\stest\smade\sfor\sthis.
J login chrstphrchvz
J mimetype text/x-fossil-wiki
K 76ad7aeba3e7049e392079c1aea8044d73c0ef17
U chrstphrchvz
Z 96af3abb61a424879b5d11a64996fb2a