]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Rework the valid_number_field test function to be more
authorTim Kientzle <kientzle@gmail.com>
Fri, 2 Dec 2016 04:09:59 +0000 (20:09 -0800)
committerTim Kientzle <kientzle@gmail.com>
Fri, 2 Dec 2016 04:09:59 +0000 (20:09 -0800)
commit182c7832fb7d77959227351b453f8c3d2bf20fe4
tree594783aae95510082fe81ff0855a43f8b9cf760e
parent88eb9e1d73fef46f04677c25b1697b8e25777ed3
Rework the valid_number_field test function to be more
lenient.  There are an enormous number of tar writing
programs, many which don't quite follow the specs.

Note:  I don't think I recall seeing any that left
number fields with trailing garbage; I may be wrong
about that, in which case, this would have to stop
at the first NUL (after the first octal character).
libarchive/archive_read_support_format_tar.c