From b2f67b406893b228e9cc50160a448e85c196e506 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 1 Nov 2002 22:08:59 +0000 Subject: [PATCH] Make it a fatal error if bad chksum or crc, if not we should return an error code --- archival/libunarchive/check_trailer_gzip.c | 4 ++-- 1 file 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) /* Validate decompression - crc */ if (stored_crc != (gunzip_crc ^ 0xffffffffL)) { - error_msg("invalid compressed data--crc error"); + error_msg_and_die("invalid compressed data--crc error"); } /* Validate decompression - size */ if (gunzip_bytes_out != (gunzip_in_buffer[4] | (gunzip_in_buffer[5] << 8) | (gunzip_in_buffer[6] << 16) | (gunzip_in_buffer[7] << 24))) { - error_msg("invalid compressed data--length error"); + error_msg_and_die("invalid compressed data--length error"); } } -- 2.25.1