PDA

View Full Version : BC2 hang when compare corrupted .tar.gz


07-Sep-2007, 10:41 AM
Using BC 2.5.1. When BC2 compare a corrupted .tar.gz (CRC failed), BC2 will hang forever.

BC2 hang when try to compare a perfect .tar.gz with a partially downloaded .tar.gz (naturally will have CRC failed).

Not sure what will happen to BC2 with the same situation using .zip files.

Chris
07-Sep-2007, 04:41 PM
Hi Frank,

If the files causing the problem are small enough to send by email, please send an example to support@scootersoftware.com and we'll take a look into this issue.

08-Sep-2007, 02:40 AM
Sorry, I am not able to send out any email with corrupted .tar.gz. The SMTP Anti-Virus protection is very smart to reject such files, including encrypted zip.

So here are the steps to recreate.
1. Download http://internap.dl.sourceforge.net/sourceforge/mingw/mingw32-make-3.81-2.tar.gz (97305 bytes)

2. Copy the perfect mingw32-make-3.81-2.tar.gz to mingw32-make-3.81-2-CRC.tar.gz

3. Simulate partial download by using Hex-Editor to cut the tail end of mingw32-make-3.81-2-CRC.tar.gz to 78192 bytes.

4. Compare mingw32-make-3.81-2.tar.gz and mingw32-make-3.81-2-CRC.tar.gz. It will hang and keep consume disk space.

MD5SUM of the two .tar.gz
ed5388ab407f56dcac636040bcf57dc5 *mingw32-make-3.81-2-CRC.tar.gz
ae3a3d5835a694d69b78d47bd924f222 *mingw32-make-3.81-2.tar.gz

Chris
10-Sep-2007, 12:29 PM
Frank,

Thanks for the detailed description of the problem. I duplicated the error on my own computer. I'll pass this on to our developers and we'll work on a fix.