projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce17c6
)
The gentoo security guys found another way to segfault busybox's decompression
author
Rob Landley
<rob@landley.net>
Mon, 20 Feb 2006 02:18:03 +0000
(
02:18
-0000)
committer
Rob Landley
<rob@landley.net>
Mon, 20 Feb 2006 02:18:03 +0000
(
02:18
-0000)
code: we can do a null dereference if one of our huffman tables has all zero
length codes. This fixes it. (Thanks solar.)
archival/libunarchive/decompress_unzip.c
patch
|
blob
|
history
diff --git
a/archival/libunarchive/decompress_unzip.c
b/archival/libunarchive/decompress_unzip.c
index 1b82542fe4326774cd69da383a592237e4e38d34..ea81695925324a461c56d9c8ba0278a86020285a 100644
(file)
--- a/
archival/libunarchive/decompress_unzip.c
+++ b/
archival/libunarchive/decompress_unzip.c
@@
-271,7
+271,7
@@
int huft_build(unsigned int *b, const unsigned int n,
if (c[0] == n) { /* null input--all zero length codes */
*t = (huft_t *) NULL;
*m = 0;
- return
0
;
+ return
2
;
}
/* Find minimum and maximum length, bound *m by those */