Overview
| Artifact ID: | 5b689fab1071eedcd2f03fe60f22bffe323eeb73 |
|---|---|
| Ticket: | 2557796fffffffffffffffffffffffffffffffff
TclpAlloc() - no overflow protection |
| User & Date: | dgp on 2009-02-02 18:31:53 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
The TclpAlloc() implementation in tclThreadAlloc.c accepts an (unsigned int) argument "reqSize" for the number of bytes the caller needs. If a value greater than (UINT_MAX - sizeof(Block)) is passed in, then the calculation of the total allocation needed including overhead will overflow the unsigned int range, and on systems where the range of size_t is no bigger than the range of unsigned int, the value of "size" will overflow and the comparions to MAXALLOC, etc. may well return bogus results.
- 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: "dgp"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "TclpAlloc() - no overflow protection"
- type changed to: "Bug"