diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-12-05 01:06:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-12-05 01:06:05 +0100 |
commit | a8461173ba5431bb64cd37112eba44a6b51640c4 (patch) | |
tree | 3af8f0b1e0302d55c859ff9fb1785b4c24be26c0 | |
parent | c71547ccfce9aff4e616c9c57a6602ca66c705e0 (diff) | |
download | busybox-w32-a8461173ba5431bb64cd37112eba44a6b51640c4.tar.gz busybox-w32-a8461173ba5431bb64cd37112eba44a6b51640c4.tar.bz2 busybox-w32-a8461173ba5431bb64cd37112eba44a6b51640c4.zip |
decompress_uncompress: comment out debug printout on corrupted data
99% plus of all people who'll get corrupted archive wouldn't bother
debugging it. The rest can uncomment the code.
function old new delta
unpack_Z_stream 1304 1234 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/libarchive/decompress_uncompress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/libarchive/decompress_uncompress.c b/archival/libarchive/decompress_uncompress.c index 4ccc8a697..0b2db94bb 100644 --- a/archival/libarchive/decompress_uncompress.c +++ b/archival/libarchive/decompress_uncompress.c | |||
@@ -232,11 +232,12 @@ unpack_Z_stream(transformer_aux_data_t *aux, int src_fd, int dst_fd) | |||
232 | 232 | ||
233 | posbits -= n_bits; | 233 | posbits -= n_bits; |
234 | p = &inbuf[posbits >> 3]; | 234 | p = &inbuf[posbits >> 3]; |
235 | 235 | /* | |
236 | bb_error_msg | 236 | bb_error_msg |
237 | ("insize:%d posbits:%d inbuf:%02X %02X %02X %02X %02X (%d)", | 237 | ("insize:%d posbits:%d inbuf:%02X %02X %02X %02X %02X (%d)", |
238 | insize, posbits, p[-1], p[0], p[1], p[2], p[3], | 238 | insize, posbits, p[-1], p[0], p[1], p[2], p[3], |
239 | (posbits & 07)); | 239 | (posbits & 07)); |
240 | */ | ||
240 | bb_error_msg("corrupted data"); | 241 | bb_error_msg("corrupted data"); |
241 | goto err; | 242 | goto err; |
242 | } | 243 | } |