diff options
author | Guy Martin <gmsoft@gentoo.org> | 2014-01-22 14:59:42 +0100 |
---|---|---|
committer | Richard Yao <ryao@gentoo.org> | 2014-01-24 22:11:32 -0500 |
commit | 8171fa4eb7542280f2982dc6d00e832933c6da99 (patch) | |
tree | 2027f1e2030c47f77a19e6bc9e2516bf737e2293 /patches/busybox | |
parent | Don't pre-populate netboot's resolv.conf. (diff) | |
download | genkernel-8171fa4eb7542280f2982dc6d00e832933c6da99.tar.gz genkernel-8171fa4eb7542280f2982dc6d00e832933c6da99.tar.bz2 genkernel-8171fa4eb7542280f2982dc6d00e832933c6da99.zip |
Add patch to fix busybox bunzip2, see #497916.
Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Diffstat (limited to 'patches/busybox')
-rw-r--r-- | patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch b/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch new file mode 100644 index 00000000..f46a4a57 --- /dev/null +++ b/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch @@ -0,0 +1,12 @@ +diff -uNr busybox-1.20.2.orig/archival/libarchive/decompress_bunzip2.c busybox-1.20.2/archival/libarchive/decompress_bunzip2.c +--- busybox-1.20.2.orig/archival/libarchive/decompress_bunzip2.c 2014-01-20 11:16:01.817359481 +0100 ++++ busybox-1.20.2/archival/libarchive/decompress_bunzip2.c 2014-01-20 11:16:47.492875819 +0100 +@@ -440,7 +440,7 @@ + literal used is the one at the head of the mtfSymbol array.) */ + if (runPos != 0) { + uint8_t tmp_byte; +- if (dbufCount + runCnt >= dbufSize) return RETVAL_DATA_ERROR; ++ if (dbufCount + runCnt > dbufSize) return RETVAL_DATA_ERROR; + tmp_byte = symToByte[mtfSymbol[0]]; + byteCount[tmp_byte] += runCnt; + while (--runCnt >= 0) dbuf[dbufCount++] = (uint32_t)tmp_byte; |