diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-19 19:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-19 19:30:51 +0200 |
commit | e09c426456cfd030cc868d93bbcb2e0a6933cabb (patch) | |
tree | b14b4e5bae0dd7a502a28fc471d87b68add7b5c4 /testsuite | |
parent | 2aeb201c9751d4ee82978c623310e14b9e831b94 (diff) | |
download | busybox-w32-e09c426456cfd030cc868d93bbcb2e0a6933cabb.tar.gz busybox-w32-e09c426456cfd030cc868d93bbcb2e0a6933cabb.tar.bz2 busybox-w32-e09c426456cfd030cc868d93bbcb2e0a6933cabb.zip |
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')
-rwxr-xr-x | testsuite/unzip.tests | 15 | ||||
-rw-r--r-- | testsuite/unzip_bad_lzma_1.zip | bin | 0 -> 229 bytes |
2 files changed, 13 insertions, 2 deletions
diff --git a/testsuite/unzip.tests b/testsuite/unzip.tests index 2e4becdb8..6bcb6b3a2 100755 --- a/testsuite/unzip.tests +++ b/testsuite/unzip.tests | |||
@@ -14,7 +14,7 @@ | |||
14 | # Create a scratch directory | 14 | # Create a scratch directory |
15 | 15 | ||
16 | mkdir temp | 16 | mkdir temp |
17 | cd temp | 17 | cd temp || exit 90 |
18 | 18 | ||
19 | # Create test file to work with. | 19 | # Create test file to work with. |
20 | 20 | ||
@@ -52,7 +52,18 @@ NzITNFBLBQUKAC4JAA04Cw0EOhZQSwUGAQAABAIAAgCZAAAAeQAAAAIALhM= | |||
52 | " | 52 | " |
53 | SKIP= | 53 | SKIP= |
54 | 54 | ||
55 | rm * | 55 | rm -f * |
56 | |||
57 | optional CONFIG_FEATURE_UNZIP_LZMA | ||
58 | testing "unzip (archive with corrupted lzma)" "unzip -p ../unzip_bad_lzma_1.zip 2>&1; echo \$?" \ | ||
59 | "unzip: removing leading '/' from member names | ||
60 | unzip: inflate error | ||
61 | 1 | ||
62 | " \ | ||
63 | "" "" | ||
64 | SKIP= | ||
65 | |||
66 | rm -f * | ||
56 | 67 | ||
57 | # Clean up scratch directory. | 68 | # Clean up scratch directory. |
58 | 69 | ||
diff --git a/testsuite/unzip_bad_lzma_1.zip b/testsuite/unzip_bad_lzma_1.zip new file mode 100644 index 000000000..1335c96d7 --- /dev/null +++ b/testsuite/unzip_bad_lzma_1.zip | |||
Binary files differ | |||