[git commit] decompress_uncompress: comment out debug printout on corrupted data

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 5 00:06:05 UTC 2012


commit: http://git.busybox.net/busybox/commit/?id=a8461173ba5431bb64cd37112eba44a6b51640c4
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

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 at googlemail.com>
---
 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 4ccc8a6..0b2db94 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)
 
 					posbits -= n_bits;
 					p = &inbuf[posbits >> 3];
-
+/*
 					bb_error_msg
 						("insize:%d posbits:%d inbuf:%02X %02X %02X %02X %02X (%d)",
 						 insize, posbits, p[-1], p[0], p[1], p[2], p[3],
 						 (posbits & 07));
+*/
 					bb_error_msg("corrupted data");
 					goto err;
 				}


More information about the busybox-cvs mailing list