summaryrefslogtreecommitdiff
path: root/testsuite/unzip.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-19 19:29:49 +0200
committerDenys Vlasenko2018-04-19 19:30:51 +0200
commite09c426456cfd030cc868d93bbcb2e0a6933cabb (patch)
treeb14b4e5bae0dd7a502a28fc471d87b68add7b5c4 /testsuite/unzip.tests
parent2aeb201c9751d4ee82978c623310e14b9e831b94 (diff)
downloadbusybox-e09c426456cfd030cc868d93bbcb2e0a6933cabb.zip
busybox-e09c426456cfd030cc868d93bbcb2e0a6933cabb.tar.gz
unlzma: fix another SEGV case
function old new delta unpack_lzma_stream 1705 1717 +12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/unzip.tests')
-rwxr-xr-xtestsuite/unzip.tests15
1 files changed, 13 insertions, 2 deletions
diff --git a/testsuite/unzip.tests b/testsuite/unzip.tests
index 2e4becd..6bcb6b3 100755
--- a/testsuite/unzip.tests
+++ b/testsuite/unzip.tests
@@ -14,7 +14,7 @@
# Create a scratch directory
mkdir temp
-cd temp
+cd temp || exit 90
# Create test file to work with.
@@ -52,7 +52,18 @@ NzITNFBLBQUKAC4JAA04Cw0EOhZQSwUGAQAABAIAAgCZAAAAeQAAAAIALhM=
"
SKIP=
-rm *
+rm -f *
+
+optional CONFIG_FEATURE_UNZIP_LZMA
+testing "unzip (archive with corrupted lzma)" "unzip -p ../unzip_bad_lzma_1.zip 2>&1; echo \$?" \
+"unzip: removing leading '/' from member names
+unzip: inflate error
+1
+" \
+"" ""
+SKIP=
+
+rm -f *
# Clean up scratch directory.