summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-16 20:35:30 +0000
committerDenis Vlasenko2007-11-16 20:35:30 +0000
commit8512862163fd7249a5e6e187eca21232d4eeadcc (patch)
tree8e594c2b5b1ee07f26f31a1074544c14a809f2da /archival/tar.c
parent7e3a5f58bcd2c40745ed7eaaa8952b29c3da4447 (diff)
downloadbusybox-8512862163fd7249a5e6e187eca21232d4eeadcc.zip
busybox-8512862163fd7249a5e6e187eca21232d4eeadcc.tar.gz
tar: fix a case where glibc detects bogus buffer overrun
which is not really there!
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 1def615..bbde88a 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -50,8 +50,9 @@ struct TarHeader { /* byte offset */
char chksum[8]; /* 148-155 */
char typeflag; /* 156-156 */
char linkname[NAME_SIZE]; /* 157-256 */
- char magic[6]; /* 257-262 */
- char version[2]; /* 263-264 */
+ /* POSIX: "ustar" NUL "00" */
+ /* GNU tar: "ustar " NUL */
+ char magic[8]; /* 257-264 */
char uname[32]; /* 265-296 */
char gname[32]; /* 297-328 */
char devmajor[8]; /* 329-336 */