Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: source-changes
Date: 08/19/1999 23:13:01
Module Name:	basesrc
Committed By:	simonb
Date:		Fri Aug 20 06:13:00 UTC 1999

Modified Files:
	basesrc/lib/libbz2: decompress.c

Log Message:
How lame is this - a decompression library SHOULD NOT use a SIGSEGV
or SIGBUS to indicate corruption in the compressed file!

Do some error checking on the array indices in the MTF macro to
return "data error" if we get outrageous values.  Some of these
values are by observation, and have been tested on all bz2 files
in the distfiles directory and a range of bz2 files up to 44MB
in size.

Should fix problem reported in PR bin/8237 by NAKAJIMA Yoshihiro.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 basesrc/lib/libbz2/decompress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.