unlzma: fix another SEGV case

function                                             old     new   delta
unpack_lzma_stream                                  1705    1717     +12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-04-19 19:29:49 +02:00
parent 2aeb201c97
commit e09c426456
3 changed files with 20 additions and 4 deletions

View File

@ -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.