summaryrefslogtreecommitdiff
path: root/source/a/mkinitrd/fixes-1.20.1/busybox-1.20.1-tar.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/mkinitrd/fixes-1.20.1/busybox-1.20.1-tar.patch')
-rw-r--r--source/a/mkinitrd/fixes-1.20.1/busybox-1.20.1-tar.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/a/mkinitrd/fixes-1.20.1/busybox-1.20.1-tar.patch b/source/a/mkinitrd/fixes-1.20.1/busybox-1.20.1-tar.patch
new file mode 100644
index 00000000..4129b651
--- /dev/null
+++ b/source/a/mkinitrd/fixes-1.20.1/busybox-1.20.1-tar.patch
@@ -0,0 +1,11 @@
+--- busybox-1.20.1/archival/libarchive/get_header_tar.c
++++ busybox-1.20.1-tar/archival/libarchive/get_header_tar.c
+@@ -84,7 +84,7 @@ static unsigned long long getOctal(char
+ first >>= 1; /* now 7th bit = 6th bit */
+ v = first; /* sign-extend 8 bits to 64 */
+ while (--len != 0)
+- v = (v << 8) + (unsigned char) *str++;
++ v = (v << 8) + (uint8_t) *++str;
+ }
+ return v;
+ }