← Commit list

b2f67b406

Glenn L McGrath
Glenn L McGrath
2002-11-01
FAILED Duration: 11s

Subject

Make it a fatal error if bad chksum or crc, if not we should return an error code

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libunarchive/check_trailer_gzip.c+2 -2
@@ -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");
}
}