fragglet / lhasa

Free Software LHA implementation
http://fragglet.github.io/lhasa/
ISC License
80 stars 15 forks source link

infinite loop when verifying last element of split archive #6

Closed jmtd closed 12 years ago

jmtd commented 12 years ago

Hi :-)

I'm testing with the doom2f split archive, as that's all I could find right now: dm2f_v18.1 dm2f_v18.2 dm2f_v18.3 dm2f_v18.4 dm2f_v18.5

../lhasa/src/lha t dm2f_v18.1 sersetup.exe - Tested : ooooo ipxsetup.exe - Tested : oo modem.num - Tested : o readme.exe - Tested : ooo setup.exe - Tested : oooooo doom2f.wad - CRC error oooooooooooooo............................................ doom2f.wad - CRC error ..........................................................

That last line appears to be printed on an infinite loop.

This is with checkout a1dc4b7a3f45559373fc3d732993ffc59893976e

If I catenate the files together and test the result, all is well. (I guess any truncated archive might reproduce this)

fragglet commented 12 years ago

I see what you mean. Investigating.

fragglet commented 12 years ago

Fixed. Thanks!