1 |
commit: 8171fa4eb7542280f2982dc6d00e832933c6da99 |
2 |
Author: Guy Martin <gmsoft <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 22 13:59:42 2014 +0000 |
4 |
Commit: Richard Yao <ryao <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 25 03:11:32 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=8171fa4e |
7 |
|
8 |
Add patch to fix busybox bunzip2, see #497916. |
9 |
|
10 |
Signed-off-by: Guy Martin <gmsoft <AT> tuxicoman.be> |
11 |
|
12 |
--- |
13 |
patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch | 12 ++++++++++++ |
14 |
1 file changed, 12 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 0000000..f46a4a5 |
19 |
--- /dev/null |
20 |
+++ b/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch |
21 |
@@ -0,0 +1,12 @@ |
22 |
+diff -uNr busybox-1.20.2.orig/archival/libarchive/decompress_bunzip2.c busybox-1.20.2/archival/libarchive/decompress_bunzip2.c |
23 |
+--- busybox-1.20.2.orig/archival/libarchive/decompress_bunzip2.c 2014-01-20 11:16:01.817359481 +0100 |
24 |
++++ busybox-1.20.2/archival/libarchive/decompress_bunzip2.c 2014-01-20 11:16:47.492875819 +0100 |
25 |
+@@ -440,7 +440,7 @@ |
26 |
+ literal used is the one at the head of the mtfSymbol array.) */ |
27 |
+ if (runPos != 0) { |
28 |
+ uint8_t tmp_byte; |
29 |
+- if (dbufCount + runCnt >= dbufSize) return RETVAL_DATA_ERROR; |
30 |
++ if (dbufCount + runCnt > dbufSize) return RETVAL_DATA_ERROR; |
31 |
+ tmp_byte = symToByte[mtfSymbol[0]]; |
32 |
+ byteCount[tmp_byte] += runCnt; |
33 |
+ while (--runCnt >= 0) dbuf[dbufCount++] = (uint32_t)tmp_byte; |