Artifact
b11df8219f723b69eeeb349725fdd9ec04c4af93123ea9ac5939e5cddfd86af2:
Ticket change
[b11df8219f]
- New ticket
[6e82720e146403fa|6e82720e14] <i>Panic "Buffer Underflow, BUFFER_PADDING not enough" when reading files > 4 GB</i>.
by
tomkiti on
2026-07-28 11:56:50.
D 2026-07-28T11:56:50.485
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment When\sreading\sfiles\s>\s4\sGB,\sTcl\s9\spanics\swith\sthe\serror\s"Buffer\sUnderflow,\sBUFFER_PADDING\snot\senough".\r\n\r\nI\screated\sa\s4\sGB\sfile\son\sWindows\swith\sthe\scommand:\r\n\r\n\s\s\s\sfsutil\sfile\screatenew\s4294967296.txt\s4294967296\r\n\r\nThe\sfollowing\sscript\scrashes\son\sWindows\sand\sLinux:\r\n\r\n\s\s\s\sset\sfilename\s4294967296.txt\r\n\s\s\s\sset\schan\s[open\s$filename\sr]\r\n\s\s\s\sread\s$chan\s[file\ssize\s$filename]\r\n\s\s\s\sclose\s$chan\r\n\r\nA\sfilesize\sof\s4294967295\sworks.\r\n\r\nTcl\s8\sthrows\sthe\sfollowing\serror:\r\n\r\n\s\s\s\sexpected\snon-negative\sinteger\sbut\sgot\s"4294967296"\r\n\s\s\s\s\s\s\s\swhile\sexecuting\r\n\s\s\s\s"read\s$chan\s[file\ssize\s$filename]"
J foundin 9.0.4
J is_private 0
J login tomkiti
J priority 5\sMedium
J private_contact 1c57e67924247fd7926e89348f266c081ec57db2
J resolution None
J severity Critical
J status Open
J submitter tomkiti
J subsystem 18.\sCommands\sM-Z
J title Panic\s"Buffer\sUnderflow,\sBUFFER_PADDING\snot\senough"\swhen\sreading\sfiles\s>\s4\sGB
J type Bug
K 6e82720e146403fadc88117c0e4fe1a7deff0fe6
U tomkiti
Z a5c0b9f7c87eb98fc5f75b018c329a67