svn commit: trunk/busybox/archival/libunarchive
landley at busybox.net
landley at busybox.net
Tue Jan 10 06:19:57 UTC 2006
Author: landley
Date: 2006-01-09 22:19:56 -0800 (Mon, 09 Jan 2006)
New Revision: 13221
Log:
Don't return 0 when there's an error.
Modified:
trunk/busybox/archival/libunarchive/decompress_unzip.c
Changeset:
Modified: trunk/busybox/archival/libunarchive/decompress_unzip.c
===================================================================
--- trunk/busybox/archival/libunarchive/decompress_unzip.c 2006-01-10 05:56:59 UTC (rev 13220)
+++ trunk/busybox/archival/libunarchive/decompress_unzip.c 2006-01-10 06:19:56 UTC (rev 13221)
@@ -973,6 +973,7 @@
/* Validate decompression - crc */
if (stored_crc != (gunzip_crc ^ 0xffffffffL)) {
bb_error_msg("crc error");
+ return -1;
}
/* Validate decompression - size */
@@ -980,6 +981,7 @@
(bytebuffer[bytebuffer_offset] | (bytebuffer[bytebuffer_offset+1] << 8) |
(bytebuffer[bytebuffer_offset+2] << 16) | (bytebuffer[bytebuffer_offset+3] << 24))) {
bb_error_msg("Incorrect length");
+ return -1;
}
return 0;
More information about the busybox-cvs
mailing list