Artifacts Associated With Ticket 57bfcf43dd
Ticket change [27b91fb5a2] (rid 209664) by chrstphrchvz on 2023-03-05 18:55:22:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
In <tt>Tcl_SetWideIntObj()</tt> (generic/tclObj.c): <pre> if ((wideValue >= (Tcl_WideInt) LONG_MIN) && (wideValue <= (Tcl_WideInt) LONG_MAX)) { TclSetLongObj(objPtr, (long) wideValue); } else { #ifndef TCL_WIDE_INT_IS_LONG TclSetWideIntObj(objPtr, wideValue); <span style="color:firebrick">#else mp_int big;<br /> TclBNInitBignumFromWideInt(&big, wideValue); Tcl_SetBignumObj(objPtr, &big);</span> #endif } </pre> The section creating a bignum is only defined when <tt>Tcl_WideInt</tt> is <tt>long</tt>. But when <tt>Tcl_WideInt</tt> is <tt>long</tt>, the range check is always true: <tt>TclSetLongObj()</tt> is always called, and the bignum section is never used. I am not aware of any other similar examples of this in core Tcl. - foundin initialized to: "8.5.19, 8.6.13"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "10. Objects"
- title initialized to: "Remove unreachable code in Tcl_SetWideIntObj()"
- type initialized to: "Patch"
Ticket change [d62d8b5218] (rid 209785) by jan.nijtmans on 2023-03-06 21:22:08:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460010.39037355"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed [1045bf69c59070c|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [7eca1b7801] (rid 209786) by jan.nijtmans on 2023-03-06 21:23:40:
- closedate changed to: "2460010.39144106"
- icomment: "Fixed [71045bf69c59070c|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"