projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71d6ccd
)
Don't return 0 when there's an error.
author
Rob Landley
<rob@landley.net>
Tue, 10 Jan 2006 06:19:56 +0000
(06:19 -0000)
committer
Rob Landley
<rob@landley.net>
Tue, 10 Jan 2006 06:19:56 +0000
(06:19 -0000)
archival/libunarchive/decompress_unzip.c
patch
|
blob
|
history
diff --git
a/archival/libunarchive/decompress_unzip.c
b/archival/libunarchive/decompress_unzip.c
index e8767cef53a244e8cf79ba2c6dfe0a21685c3623..4c1d1780ecd7727e8cb4749268e1b5b502509611 100644
(file)
--- a/
archival/libunarchive/decompress_unzip.c
+++ b/
archival/libunarchive/decompress_unzip.c
@@
-973,6
+973,7
@@
extern int inflate_gunzip(int in, int out)
/* Validate decompression - crc */
if (stored_crc != (gunzip_crc ^ 0xffffffffL)) {
bb_error_msg("crc error");
+ return -1;
}
/* Validate decompression - size */
@@
-980,6
+981,7
@@
extern int inflate_gunzip(int in, int out)
(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;