Overview
| Artifact ID: | dfb26b470425d06435721300b50a178a1d31b2c5 |
|---|---|
| Ticket: | 2845535fffffffffffffffffffffffffffffffff
string overflow panic in [format] |
| User & Date: | mistachkin on 2009-08-27 12:38:31 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
The following command triggers a crash in 8.4, 8.5, and HEAD: format "%.2147483647f" 2 The following command triggers a crash in 8.5 and HEAD (in 8.4 it produces some kind of result): format "%2147483647.f" 2 The following code (near line 2187) in "generic\tclStringObj.c" is a bit problematic due to unchecked usage of sprintf with a fixed size buffer: char spec[2*TCL_INTEGER_SPACE + 9], *p = spec; <snip> if (width) { p += sprintf(p, "%d", width); if (width > length) { length = width; } } if (gotPrecision) { *p++ = '.'; p += sprintf(p, "%d", precision); length += precision; } - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mistachkin"
- subsystem changed to: "16. Commands A-H"
- title changed to: "crash issue with [format]"
- type changed to: "Bug"