Bug#638963: busybox: undefined behavior in bunzip2
Package: busybox
Version: 1:1.18.5-1
Severity: normal
Tags: patch
Function start_bunzip() in archival/libarchive/decompress_bunzip2.c, line 689
calls setjmp() in a way resulting in undefined behavior. Patch below.
--- decompress_bunzip2.c 2011-06-12 16:55:58.000000000 +0200
+++ decompress_bunzip2_new.c 2011-08-23 13:13:31.196926790 +0200
@@ -687,6 +687,6 @@
/* Setup for I/O error handling via longjmp */
- i = setjmp(bd->jmpbuf);
- if (i) return i;
+ if (setjmp(bd->jmpbuf))
+ return RETVAL_UNEXPECTED_INPUT_EOF;
/* Ensure that file starts with "BZh['1'-'9']." */
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.utf8, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages busybox depends on:
ii libc6 2.13-16 Embedded GNU C Library: Shared lib
busybox recommends no packages.
busybox suggests no packages.
-- no debconf information
Reply to: