Tk Source Code

View Ticket
Login
Ticket UUID: 3609354
Title: Tk crashes with zlib-less tcl on init
Type: Bug Version: current: 8.6.0
Submitter: Created on: 2013-03-28 13:09:18
Subsystem: 41. Photo Images Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-03-28 20:23:03
Resolution: Fixed Closed By: dkf
    Closed on: 2013-03-28 13:23:03
Description:
InitPNGImage() calls Tcl_ZlibStreamInit() with a NULL interpreter.

If Tcl was (accidentially in my case) configured without HAVE_ZLIB, that function does not check for a NULL interpreter when reporting an error and crashes.
User Comments: dkf added on 2013-03-28 20:23:03:

allow_comments - 1

Don Porter fixed this on the Tcl side of things with commit https://core.tcl.tk/tcl/info/877c8ac162

(We don't want to pass in a non-NULL interp as we don't want a command creating for the stream.)