unzip: add a comment explaining why we don't die
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Fri, 19 Oct 2007 21:03:09 +0000 (21:03 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Fri, 19 Oct 2007 21:03:09 +0000 (21:03 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20299 69ca8d6d-28ef-0310-b511-8ec308f3f277

archival/unzip.c

index 37781e4..56a5eb6 100644 (file)
@@ -107,6 +107,8 @@ static void unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd)
                }
                /* Validate decompression - size */
                if (zip_header->formatted.ucmpsize != res.bytes_out) {
+                       /* Don't die. Who knows, maybe len calculation
+                        * was botched somewhere. After all, crc matched! */
                        bb_error_msg("bad length");
                }
        }