Skip to content

Commit

Permalink
tar: fix 256-bit encoded number decoding
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Le Sueur <elesueur@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
  • Loading branch information
elesueur authored and tpruvot committed Jul 13, 2012
1 parent ca14b0a commit 8612921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archival/libarchive/get_header_tar.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8612921

Please sign in to comment.