Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_ZlibInflate / Tcl_ZlibDeflate fails on shared objects

Closed / Fixed2947783fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-02-08 11:47:53
When Tcl_ZlibInflate / Tcl_ZlibDeflate is called, it accesses interpreter's current result. If current result is being used, Tcl_SetByteArrayLength() fails. For example this would fail:

o = Tcl_NewByteArrayObj((unsigned char *) "", 0);
Tcl_IncrRefCount(o);
Tcl_SetObjResult(interp, o);
Tcl_ZlibInflate(tinterp, TCL_ZLIB_FORMAT_RAW, o, 0, NULL);
dkfplain2010-02-08 20:22:07
allow_comments - 1
Log in (anonymous is fine) to add a comment.