aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-01 22:08:59 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-01 22:08:59 +0000
commitb2f67b406893b228e9cc50160a448e85c196e506 (patch)
tree19ae9d963f7be13eb6fa14916b9173fce7c53c58
parent563ac6e789a3fdf438121df9a965f53a254bfff0 (diff)
downloadbusybox-b2f67b406893b228e9cc50160a448e85c196e506.tar.gz
Make it a fatal error if bad chksum or crc, if not we should return an error code
-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)
/* 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");
}
}