arenn / gzrt

gzip Recovery Toolkit aka gzrecover
http://www.urbanophile.com/arenn/hacking/gzrt/gzrt.html
127 stars 25 forks source link

probably just variable type issue - number less than zero #1

Open mnmnm opened 9 years ago

mnmnm commented 9 years ago

Opened input file for reading: ../firefly-rk3288_sdk_git.tar.gz Opened output file for writing: firefly-rk3288_sdk_git.tar.recovered Found error at byte -394639277 in input stream Found good data at byte -395313152 in input stream Total decompressed output = -334166016 bytes

In [2]: 2**32 -394639277 Out[2]: 3900328019

very good utility for (re)downloading files from chinese baidu.com site. thanks a lot !!

mnmnm commented 9 years ago

$ diff -ubrNdp gzrecover.c.ori gzrecover.c.new --- gzrecover.c.ori 2014-09-30 13:44:48.643503244 +0200 +++ gzrecover.c.new 2014-09-30 14:32:23.762568982 +0200 @@ -28,7 +28,7 @@

include

include

-#define VERSION "0.8" +#define VERSION "0.8a"

/* Global contants _/

define DEFAULT_INBUF_SIZE (1024_1024)

@@ -185,7 +185,7 @@ skip_gzip_header(z_stream _d_stream) int main(int argc, char *_argv) {

arenn commented 9 years ago

Thanks for the patch. I'll try to give it a look in the next couple months as I'm swamped with work at present, but this looks straightforward.