]> Dogcows Code - chaz/tar/commit
(decode_record): Don't dump core when given
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2005 06:39:19 +0000 (06:39 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2005 06:39:19 +0000 (06:39 +0000)
commit95fa3422d7365bfec419cb6537da6d9e0efbab83
tree9773f09a4306be985e1a99ef0182788d3e3c418b
parent67c7284d07f9b8de0c0d46c6e8134b856b5fe213
(decode_record): Don't dump core when given
a corrupted extended header.  Problem reported by Jim Meyering.
Also, check for other ways that the header might be invalid,
e.g., missing newline at end.  Do not allow keys with nulls.
Allow blanks before and after length, as POSIX requires.
Do not allow leading "-" in length.  Check for length overflow.
(xheader_decode, xheader_decode_global): Let decode_record
check for exhaustion of record.
(xheader_read): Null-terminate the extended record;
decode_record relies on this.
src/xheader.c
This page took 0.02188 seconds and 4 git commands to generate.