diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decompress_unlzma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c index 48173594ce01..696c34a274cf 100644 --- a/lib/decompress_unlzma.c +++ b/lib/decompress_unlzma.c | |||
@@ -574,8 +574,10 @@ STATIC inline int INIT unlzma(unsigned char *buf, int in_len, | |||
574 | ((unsigned char *)&header)[i] = *rc.ptr++; | 574 | ((unsigned char *)&header)[i] = *rc.ptr++; |
575 | } | 575 | } |
576 | 576 | ||
577 | if (header.pos >= (9 * 5 * 5)) | 577 | if (header.pos >= (9 * 5 * 5)) { |
578 | error("bad header"); | 578 | error("bad header"); |
579 | goto exit_1; | ||
580 | } | ||
579 | 581 | ||
580 | mi = 0; | 582 | mi = 0; |
581 | lc = header.pos; | 583 | lc = header.pos; |