|
2016-06-27
| ||
| 14:29 | • Closed ticket [dd260aaf72]: chan configure -dictionary (zlib deflate) segfault... artifact: 29ad905639 user: dkf | |
| 14:28 | [dd260aaf72] Allow the -dictionary option to be read from a pushed transform. check-in: b900551f9b user: dkf tags: trunk | |
| 14:27 | [dd260aaf72] Allow the -dictionary option to be read from a pushed transform. check-in: 3a71ff429a user: dkf tags: core-8-6-branch | |
|
2016-06-20
| ||
| 21:52 | • Ticket [dd260aaf72] chan configure -dictionary (zlib deflate) segfault sta... artifact: 287186da94 user: dgp | |
|
2016-04-16
| ||
| 07:00 | • Ticket [dd260aaf72]: 4 changes artifact: cd6a9960c4 user: anonymous | |
| 06:58 | • Add attachment zlib.patch to ticket [dd260aaf72] artifact: 91fe5a9411 user: anonymous | |
|
2016-04-15
| ||
| 11:59 | • Ticket [dd260aaf72] chan configure -dictionary (zlib deflate) segfault sta... artifact: d485b38431 user: dgp | |
| 08:41 | • New ticket [dd260aaf72]. artifact: f14d829802 user: nem | |
[chan configure -dictionary] (zlib deflate) segfault
Closed / Fixeddd260aaf7225ffcb658d0d64ba87d1c2351487efCreated 11 years agoUpdated 10 years ago
Descriptionplain2016-04-15 08:41:27
The following commands cause a segfault on 8.6 and 8.7a0 (Mac OS X 10.10.5):
% set json {{"sub":["demo","amadmin"],"exp":"valid","auth":"http://neil.example.com:8080/openam/json/authenticate"}}
{"sub":["demo","amadmin"],"exp":"valid","auth":"http://neil.example.com:8080/openam/json/authenticate"}
% set out [open /tmp/test.json wb]
file6
% zlib push deflate $out
file6
% puts $out $json
% chan configure $out -dictionary
rlwrap: warning: tclsh8.7 crashed, killed by SIGSEGV.
Referenced by2
b900551f9b[dd260aaf72] Allow the -dictionary option to be read from a pushed transform. check-in2016-06-27 14:28:333a71ff429a[dd260aaf72] Allow the -dictionary option to be read from a pushed transform. check-in2016-06-27 14:27:43
dgp Ticket [dd260aaf72]: 5 changes
[History diff]2016-04-15 11:59:29
anonymous (claiming to be aspect)plain2016-04-16 07:00:03
potential patch attached. I thought it might be possible to read the compression dictionary generated by zlib after pushing some data through, but looking at the TIP and zlib manual it's clear that's not intended. The patch introduces some tests, makes getting an unconfigured -dictionary work and adds some text from http://www.zlib.net/manual.html to the docs, making it cleared how the option works. Making the inflate case work correctly required removing the lines at [1] - I think this is correct but dkf might know if there's a reason to do otherwise. [1]: http://core.tcl.tk/tcl/artifact/3354467036e27f0b?ln=3623-3624
dgpplain2016-06-20 21:52:37
Would be good to fix for 8.6.6.
dkfhtml2016-06-27 14:29:15
Thanks!
Log in (anonymous is fine) to add a comment.