diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-13 20:20:46 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-13 20:20:46 (GMT) |
commit | 8890130ab8712a4f466800f5680b617525d9feba (patch) | |
tree | 5e427fade1da0aae431f74090f943fc2b75ccc1a /tests/zlib.test | |
parent | 0ccb6618bd81f303878181effc620404a14515d8 (diff) | |
download | tcl-8890130ab8712a4f466800f5680b617525d9feba.zip tcl-8890130ab8712a4f466800f5680b617525d9feba.tar.gz tcl-8890130ab8712a4f466800f5680b617525d9feba.tar.bz2 |
TIP 400 suffered from the same segfaulting flaw as 3595576.
Segfaulting test and fix committed.
Diffstat (limited to 'tests/zlib.test')
-rw-r--r-- | tests/zlib.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/zlib.test b/tests/zlib.test index 5f1e5fc..891dba0 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -826,6 +826,20 @@ test zlib-11.2 "Bug #3390073: mis-appled gzip filtering" -setup { } -cleanup { removeFile $file } -result {1000 /foo/bar 0} +test zlib-11.3 {Bug 3595576 variant} -setup { + set file [makeFile {} test.input] +} -constraints zlib -body { + set f [open $file wb] + puts -nonewline [zlib push gzip $f -header {filename /foo/bar}] \ + [string repeat "hello" 1000] + close $f + set f [open $file rb] + set d [read $f] + close $f + zlib gunzip $d -header noSuchNs::foo +} -cleanup { + removeFile $file +} -returnCodes error -result {can't set "noSuchNs::foo": parent namespace doesn't exist} ::tcltest::cleanupTests return |