Overview
| Artifact ID: | 5648b319c4f12a8524b81a124c8b3244b89875c04c912418f66124db708f50c9 |
|---|---|
| Ticket: | 819f7040535f7f1c9857d447680fda1df83c48c3
TclGetUnicodeFromObj doesn't handle numChars > INT_MAX |
| User & Date: | dgp on 2021-11-06 18:11:11 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Line 617 of tclStringObj.c: *lengthPtr = (int)stringPtr->numChars; The cast might make type-checking compilers happy, but it will not handle the case when stringPtr->numChars > INT_MAX in any way that can be considered sensible. My first guess is we ought to panic. You can't use a constrained interface to fetch a value not within that constraint. - foundin changed to: "trunk"
- is_private changed to: "0"
- login: "dgp"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "10. Objects"
- title changed to:
TclGetUnicodeFromObj doesn't handle numChars > INT_MAX
- type changed to: "Bug"