Overview
| Artifact ID: | 2adb0fc3d3faa23ecdbeecf3adeb6df7a784ee6471796298ec3ba8c1e0501c17 |
|---|---|
| Ticket: | ab123cfd3d02fb1198f18261c9705e09b4797b99
ValidateFormat(): signed integer overflow |
| User & Date: | chrstphrchvz on 2023-04-27 07:16:01 |
Changes
- foundin changed to: "core-8-6-branch"
- icomment:
This issue as well as [d4ede611a7a7] are present on 8.6 and 8.7, as revealed by running the contents of scan-13.9 (<tt>scan abc {%2147483648$s}</tt>): <blockquote><pre> tcl86/generic/tclScan.c:318:15: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' tcl86/generic/tclScan.c:495:14: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' tcl86/generic/tclScan.c:684:12: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'long int' tcl86/generic/tclScan.c:840:16: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' tcl86/generic/tclScan.c:840:7: runtime error: applying non-zero offset 4294967292 to null pointer AddressSanitizer:DEADLYSIGNAL ================================================================= ==14995==ERROR: AddressSanitizer: SEGV on unknown address 0x3fffffff (pc 0xb638796b bp 0xbf88eed8 sp 0xbf88ecd0 T0) ==14995==The signal is caused by a READ memory access. #0 0xb638796b in Tcl_ScanObjCmd tcl86/generic/tclScan.c:840 #1 0xb5a80a1c in Dispatch tcl86/generic/tclBasic.c:4467 #2 0xb5a80e22 in TclNRRunCallbacks tcl86/generic/tclBasic.c:4503 #3 0xb5a7dbc3 in Tcl_EvalObjv tcl86/generic/tclBasic.c:4226 #4 0xb5a8c904 in TclEvalEx tcl86/generic/tclBasic.c:5372 #5 0xb6267bdb in Tcl_FSEvalFileEx tcl86/generic/tclIOUtil.c:1824 #6 0xb62a34b2 in Tcl_MainEx tcl86/generic/tclMain.c:403 #7 0x509523 in main tcl86/unix/tclAppInit.c:91 #8 0xb4a25128 (/usr/lib/libc.so.6+0x1f128) #9 0xb4a251fc in __libc_start_main (/usr/lib/libc.so.6+0x1f1fc) #10 0x5093ea in _start (tcl86/unix/tcltest+0x443ea) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV tcl86/generic/tclScan.c:840 in Tcl_ScanObjCmd ==14995==ABORTING </pre></blockquote> - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"