Artifacts Associated With Ticket ce4483c2cb
Ticket change [0a4bc9c264] (rid 199082) by dgp on 2022-03-11 21:13:34:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The GetFormatSpec() routine used in the implementation of [binary format] and [binary scan] is truncating the parsed "count" value at INT_MAX (and also using INT_MAX as some kind of signal of a parsing error??) even though the argument has been expanded to size_t . Worth examining to see what is the best way forward.
- foundin initialized to: "9"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "12. ByteArray Object"
- title initialized to: "Audit GetFormatSpec for size_t"
- type initialized to: "Bug"
Ticket change [7185c84cc3] (rid 258479) by serhiy.storchaka on 2026-10-17 08:44:34:
- foundin changed to: "9.0.5, 9.1.0"
- icomment:
GetFormatSpec no longer truncates at INT_MAX since 9.0 ([06ceffb2f3]), but BinaryFormatCmd still adds the field sizes without checking for overflow: <nowiki>[binary format x4611686018427387904x4611686018427387904]</nowiki> returns an empty string and <nowiki>[binary format x99999999999999999999]</nowiki> panics (same as [2788582fff]). Proposed fix in branch [/timeline?r=binary-format-size-overflow|binary-format-size-overflow]: report "max size for a Tcl value exceeded" instead. Tests binary-81.*.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [13c52a9795] (rid 263397) by jan.nijtmans on 2026-11-27 13:51:04:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461372.0771311922"
- closer changed to: "jan.nijtmans"
- icomment: "Dup of [2788582fff]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"