Overview
| Artifact ID: | b11df8219f723b69eeeb349725fdd9ec04c4af93123ea9ac5939e5cddfd86af2 |
|---|---|
| Ticket: | 6e82720e146403fadc88117c0e4fe1a7deff0fe6
Panic "Buffer Underflow, BUFFER_PADDING not enough" when reading files >= 4 GB |
| User & Date: | tomkiti on 2026-07-28 11:56:50 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
When reading files > 4 GB, Tcl 9 panics with the error "Buffer Underflow, BUFFER_PADDING not enough". I created a 4 GB file on Windows with the command: fsutil file createnew 4294967296.txt 4294967296 The following script crashes on Windows and Linux: set filename 4294967296.txt set chan [open $filename r] read $chan [file size $filename] close $chan A filesize of 4294967295 works. Tcl 8 throws the following error: expected non-negative integer but got "4294967296" while executing "read $chan [file size $filename]" - foundin changed to: "9.0.4"
- is_private changed to: "0"
- login: "tomkiti"
- priority changed to: "5 Medium"
- private_contact changed to: "1c57e67924247fd7926e89348f266c081ec57db2"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "tomkiti"
- subsystem changed to: "18. Commands M-Z"
- title changed to:
Panic "Buffer Underflow, BUFFER_PADDING not enough" when reading files > 4 GB
- type changed to: "Bug"