Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-09-05
12:56 • Closed ticket [5927f87da3]: Tcl_GetNumber() limits input length without cause</i... artifact: b7a6b5bab7 user: dgp
12:55
[5927f87da3] Remove outdated limit on argument size. check-in: 8200300da9 user: dgp tags: core-9-0-branch
07:04 • Ticket [5927f87da3] Tcl_GetNumber() limits input length without cause status... artifact: 8c2ecf9ab7 user: jan.nijtmans
2025-09-04
17:58 • Ticket [5927f87da3]: 3 changes artifact: 0a27b72147 user: dgp
17:57
[5927f87da3] Remove outdated limit on argument size. closed check-in: 9d7abdb5ca user: dgp tags: bug-5927f87da3
17:55 • New ticket [5927f87da3] Tcl_GetNumber() limits input length without cause. artifact: 3a5f9524b9 user: dgp

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.