aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/libarchive/decompress_unlzma.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/archival/libarchive/decompress_unlzma.c b/archival/libarchive/decompress_unlzma.c
index 0744f231a..fb5aac8fe 100644
--- a/archival/libarchive/decompress_unlzma.c
+++ b/archival/libarchive/decompress_unlzma.c
@@ -290,8 +290,11 @@ unpack_lzma_stream(transformer_state_t *xstate)
290 uint32_t pos; 290 uint32_t pos;
291 291
292 pos = buffer_pos - rep0; 292 pos = buffer_pos - rep0;
293 if ((int32_t)pos < 0) 293 if ((int32_t)pos < 0) {
294 pos += header.dict_size; 294 pos += header.dict_size;
295 if ((int32_t)pos < 0)
296 goto bad;
297 }
295 match_byte = buffer[pos]; 298 match_byte = buffer[pos];
296 do { 299 do {
297 int bit; 300 int bit;