Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-20
08:02 • Closed ticket [1b803e48af]: Possible overread in Tcl_ZlibInflate() plus 7 ot... artifact: fd7ab3722a user: jan.nijtmans
2026-11-19
12:06
Fix [1b803e48a]: Possible overread in Tcl_ZlibInflate() check-in: e4ad1e8ace user: jan.nijtmans tags: core-8-6-branch
10:24
Fix [1b803e48a]: Possible overread in Tcl_ZlibInflate() check-in: a929a21ece user: jan.nijtmans tags: core-9-0-branch
10:14
Fix [1b803e48a]: Possible overread in Tcl_ZlibInflate() check-in: f31ea7f7ef user: jan.nijtmans tags: mistake
10:10
Fix [1b803e48a]: Possible overread in Tcl_ZlibInflate(). Forgot there is already a ticket about this check-in: ecb74f661e user: jan.nijtmans tags: trunk, main
2026-11-13
14:25
Fix [1b803e48a]: Possible overread in Tcl_ZlibInflate() closed check-in: 02b13a3028 user: jan.nijtmans tags: bug-1b803e48a
14:23 • New ticket [1b803e48af] Possible overread in Tcl_ZlibInflate(). artifact: 2ed10c6130 user: jan.nijtmans

Possible overread in Tcl_ZlibInflate()

Closed / Fixed1b803e48af8b218f64b9421d5f5be137fa967863Created 19 days agoUpdated 13 days ago
Descriptionwiki2026-11-13 14:23:12
in tclZlib.c, line 1876:
    stream.avail_in = inLen+1; /* +1 because zlib can "over-request"
                                * input (but ignore it!) */

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.

jan.nijtmanswiki2026-11-20 08:02:34

Merge to [trunk], core-9-0-branch and core-8-6-branch

Log in (anonymous is fine) to add a comment.