ckolivas / lrzip

Long Range Zip
http://lrzip.kolivas.org
GNU General Public License v2.0
618 stars 76 forks source link

lrzip goes in infinite loop when given -w -15 command line arg #85

Closed alexyorke closed 6 years ago

alexyorke commented 6 years ago

The following is a command that I have lrzip on a 900MB file. I tried it with -vvv and it was trying to compress 0 bytes many hundreds of times, and didn't appear to stop compressing.


decagon@server:/tmp/test$ lrzip -w -15 -vl test.out
The following options are in effect for this COMPRESSION.
Threading is DISABLED. Number of CPUs detected: 1
Detected 516517888 bytes ram
Compression level 7
Nice Value: 19
Show Progress
Verbose
Temporary Directory set as: ./
Compression mode is: LZO
Compression Window: -15 = -1500MB
Output filename is: test.out.lrz
File size: 955108193
Will take 1 pass
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
Beginning rzip pre-processing phase
ckolivas commented 6 years ago

Yeah that's interesting, it shouldn't allow negative numbers.