Tcl Source Code

Check-in [dd5cd86e81]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [2788582fff] and [ce4483c2cb]: [binary format] with huge counts or offsets panicked or returned a wrong result, because the first pass added the field sizes without checking for overflow. Report "max size for a Tcl value exceeded" instead.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | binary-format-size-overflow
Files: files | file ages | folders
SHA3-256: dd5cd86e81a1ebb12ae75580a2e323eecfbf95893de76d84b7e966c370d564fe
User & Date: serhiy.storchaka 2026-10-17 08:43:18.103
Context
2026-10-17
08:43
Fix [2788582fff] and [ce4483c2cb]: [binary format] with huge counts or offsets panicked or returned ... leaf check-in: dd5cd86e81 user: serhiy.storchaka tags: binary-format-size-overflow
07:20
Fix [2dff98e079]: format %A garbles negative, padded and infinite values check-in: 9336b96c43 user: serhiy.storchaka tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tclBinary.c.
Changes to tests/binary.test.