Overview
| Artifact ID: | 6175cfbe1acb344064ec50dd1253c005f0a5322bcb6a10679a3f89dd2889a93c |
|---|---|
| Ticket: | c9663296fd31fbb2fa1ff1cf019b59f432983516
GrowStringBuffer and GrowUnicodeBuffer do not check for overflows |
| User & Date: | apnadkarni on 2023-04-23 02:49:00 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
On reallocations, `GrowStringBuffer` doubles the requested size without checking for integer overflow. This applies to 8.7 and 9.0 (may be even earlier). On the second attempt, it limits the size to `INT_MAX` which is no longer the limit in 64-bit 9.0 (should be TCL_SIZE_MAX). Just noting for now for future correction. The doubling every time also has to be reconsidered as it wastes a lot of memory once sizes get large (bigdata tests) causing memory exhaustion panics when there should not be.
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "GrowStringBuffer does not check for overflows"
- type changed to: "Bug"