unlzma: fix segfault on bad archive
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Apr 2018 18:45:16 +0000 (20:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Apr 2018 18:45:16 +0000 (20:45 +0200)
commita1870f4807a75663a085c9f5e92870fa7554f0ad
tree7293c35ce6a4df9941c827e59c9b10708be0034e
parent38ccd6af8abbafff98d458a1c62909acfc09a514
unlzma: fix segfault on bad archive

function                                             old     new   delta
unpack_lzma_stream                                  2647    2653      +6

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/decompress_unlzma.c
testsuite/unlzma.tests [new file with mode: 0755]
testsuite/unlzma_issue_1.lzma [new file with mode: 0644]
testsuite/unlzma_issue_2.lzma [new file with mode: 0644]