Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_GetNumber() limits input length without cause

Closed / Accepted5927f87da3b7dc94a79e5c1aa87ba0170b990f13Created 1 year agoUpdated 1 year ago
Descriptionplain2025-09-04 17:55:12
When Tcl_GetNumber() receives a numBytes argument greater than INT_MAX,
an error is raised.  When numBytes is negative and bytes points to an
array of more than INT_MAX chars before a NUL is found, an error is also
raised.

Tcl_GetNumber() is continuing to check and raise errors for Tcl values
exceeding the size limits of Tcl 8, even though the routine is new in
Tcl 9.

The fix is simple and obvious.
Referenced by2
dgpplain2025-09-04 17:58:05
Branch bug-5927f87da3 is ready for review and merge.
jan.nijtmanswiki2025-09-05 07:04:07

This is trivial, thanks!

+1

dgp Closed ticket [5927f87da3]. [History diff]2025-09-05 12:56:47
Log in (anonymous is fine) to add a comment.