[git commit] tar: fix 256-bit encoded number decoding
Denys Vlasenko
vda.linux at googlemail.com
Sat Jun 9 06:37:05 UTC 2012
commit: http://git.busybox.net/busybox/commit/?id=cfc212cdfff27c6a7b9d9743f87c4da70f97558c
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Etienne Le Sueur <elesueur at vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
archival/libarchive/get_header_tar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c
index 80a7091..b168653 100644
--- a/archival/libarchive/get_header_tar.c
+++ b/archival/libarchive/get_header_tar.c
@@ -84,7 +84,7 @@ static unsigned long long getOctal(char *str, int len)
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;
}
More information about the busybox-cvs
mailing list