Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7185c84cc35db15515c9445cda5bef8351767875d1771cdcb826ec4555f52f1f
Ticket: ce4483c2cb67f6b3ce417cbf471ead93282d809d
Audit GetFormatSpec for size_t
User & Date: serhiy.storchaka on 2026-10-17 08:44:34
Changes

  1. foundin changed to: "9.0.5, 9.1.0"
  2. 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.*.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"