Subject: bin/8237: decompressing broken bzip2'd file, gzip(1) dumps core
To: None <gnats-bugs@gnats.netbsd.org>
From: NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
List: netbsd-bugs
Date: 08/19/1999 08:52:05
>Number: 8237
>Category: bin
>Synopsis: decompressing broken bzip2'd file, gzip(1) dumps core
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 19 08:35:01 1999
>Last-Modified:
>Originator: NAKAJIMA Yoshihiro
>Organization:
>Release: NetBSD-current 1999/08/18
>Environment:
System: NetBSD asura 1.4K NetBSD 1.4K (ASURA) #0: Thu Aug 19 23:19:42 JST 1999 nakayosh@asura:/usr/src/sys/arch/i386/compile/ASURA i386
>Description:
Our bunzip2-able gzip(1) dumps core when decompressing broken
file.
>How-To-Repeat:
% echo HELLO | bzip2 | tr '\020' '\021' > broken.bz2
% gzip -dc broken.bz2
Segmentation fault (core dumped)
%
>Fix:
I don't know. (bzip2(1) prepares SIGSEGV and SIGBUS signal
handlers)
>Audit-Trail:
>Unformatted: