Ticket UUID: | 05ff16e799ef5d6d15ad1330425f243e5c49d13 | |||
Title: | signed integer overflow in ExtendStringRepWithUnicode() | |||
Type: | Patch | Version: | core-8-6-branch | |
Submitter: | chrstphrchvz | Created on: | 2022-04-07 18:58:01 | |
Subsystem: | 10. Objects | Assigned To: | jan.nijtmans | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2022-04-08 09:17:49 | |
Resolution: | Fixed | Closed By: | jan.nijtmans | |
Closed on: | 2022-04-08 09:17:49 | |||
Description: |
Example script (assumes your Tcl already has the fix for [0e8fd6c6d5]): set z [string repeat "\u0000" 1073741820] puts stderr [::tcl::unsupported::representation $z] Output containing UBSan -fsanitize=signed-integer-overflow error (which the attached patch prevents):
| |||
User Comments: |
jan.nijtmans added on 2022-04-08 09:17:49:
Merged to 8.6 and 8.7 (no problem on 9.0) Thanks! |
Attachments:
- 05ff16e799.diff [download] added by chrstphrchvz on 2022-04-07 19:12:22. [details]