Overview
| Artifact ID: | 2ed10c613036eedc1533a591f125735e1bdae7965674e76ddb009bfd1613a20f |
|---|---|
| Ticket: | 1b803e48af8b218f64b9421d5f5be137fa967863
Possible overread in Tcl_ZlibInflate() |
| User & Date: | jan.nijtmans on 2026-11-13 14:23:12 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
in tclZlib.c, line 1876: <pre> stream.avail_in = inLen+1; /* +1 because zlib can "over-request" * input (but ignore it!) */ </pre> The data buffer is retreived from Tcl_GetBytesFromObj() (line 1808), but the array returned here is NOT generally null-terminated. Is this "+1" really needed? My guess is that it might have been needed in an old (buggy) zlib version, but those kind of bugs are fixed already long ago. We shouldn't do that any more. Let's see if removing the "+1" breaks anything. - foundin changed to: "all"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "Possible overread in Tcl_ZlibInflate()"
- type changed to: "Bug"