Skip to content
Tcl Source Code Artifact [8d105f672e]
Login

Artifact [8d105f672e]

Artifact 8d105f672eef818d6bc4f2d878649cd73c8f41889b1006625004d14b21b736f6:

Ticket change [8d105f672e] - Ticket [76ad7aeba3e7049e|76ad7aeba3] <i>boundary case bug in [string is integer]</i> status still Open with 3 other changes by chrstphrchvz on 2022-05-21 21:29:10.
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&#91;18446744069414584320,18446744073709551615&#93;,\si.e.\s&#91;(2**64-1)-(2**32-1),2**64-1&#93;\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