GNOME Bugzilla – Bug 763376
gcab fails to extract empty files in folders without data
Last modified: 2016-03-09 17:24:54 UTC
Created attachment 323517 [details] emptyfiles.cab Gcab does not extract files of size zero in folders with no CFDATA chunks, but aborts with a generic "unexpected end of stream" error. Such cab files are readily produced by available tools; attached is one produced by makecab.exe, simply by asking it to create a cab from two empty files, file1 and file2. As you can see, the files both belong to a folder without CFDATA. The gcab utility will crash during the extraction of one of them. Other tools extract both files successfully.
thanks, are you working on a fix?
I'll give it a go if I can spare some time. It's probably trivial.
fixed in git (In reply to Mattias Engdegård from comment #0) > The gcab utility will crash during the extraction of one of them. Other > tools extract both files successfully. "gcab: error during extraction: Unexpected early end-of-stream", not really a crash.
(In reply to Marc-Andre Lureau from comment #3) > fixed in git Thanks! Your change (do-while changed into while) was identical to the one that I was preparing, so it was rather obvious.