projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f451b2c
)
tar: fix 256-bit encoded number decoding
author
Etienne Le Sueur
<elesueur@vmware.com>
Sat, 9 Jun 2012 06:37:05 +0000
(08:37 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 9 Jun 2012 06:37:05 +0000
(08:37 +0200)
Signed-off-by: Etienne Le Sueur <elesueur@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/get_header_tar.c
patch
|
blob
|
history
diff --git
a/archival/libarchive/get_header_tar.c
b/archival/libarchive/get_header_tar.c
index
80a7091
..
b168653
100644
(file)
--- 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) + (u
nsigned char) *str++
;
+ v = (v << 8) + (u
int8_t) *++str
;
}
return v;
}