aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/libunarchive/check_trailer_gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/check_trailer_gzip.c b/archival/libunarchive/check_trailer_gzip.c
index 215e8293f..2d6ceaeda 100644
--- a/archival/libunarchive/check_trailer_gzip.c
+++ b/archival/libunarchive/check_trailer_gzip.c
@@ -49,14 +49,14 @@ extern void check_trailer_gzip(int src_fd)
49 49
50 /* Validate decompression - crc */ 50 /* Validate decompression - crc */
51 if (stored_crc != (gunzip_crc ^ 0xffffffffL)) { 51 if (stored_crc != (gunzip_crc ^ 0xffffffffL)) {
52 error_msg("invalid compressed data--crc error"); 52 error_msg_and_die("invalid compressed data--crc error");
53 } 53 }
54 54
55 /* Validate decompression - size */ 55 /* Validate decompression - size */
56 if (gunzip_bytes_out != 56 if (gunzip_bytes_out !=
57 (gunzip_in_buffer[4] | (gunzip_in_buffer[5] << 8) | 57 (gunzip_in_buffer[4] | (gunzip_in_buffer[5] << 8) |
58 (gunzip_in_buffer[6] << 16) | (gunzip_in_buffer[7] << 24))) { 58 (gunzip_in_buffer[6] << 16) | (gunzip_in_buffer[7] << 24))) {
59 error_msg("invalid compressed data--length error"); 59 error_msg_and_die("invalid compressed data--length error");
60 } 60 }
61 61
62} 62}