qforeign-0.65: Bzip2: decompress hangs if data ends prematurely

Michael Marte marte@pms.informatik.uni-muenchen.de
Thu, 25 Oct 2001 12:06:53 +0200 (CEST)


Hello *,

I found that decompress hangs if data ends prematurely,
i.e.

	do
	content <- readFile fp
	doSomething (Bzip2.decompress content)

does not terminate in this case.
Data that is corrupt in some other way (for example, decompressing
a file that has not been generated with bzip2) is detected and
an exception is thrown.

Michael