Commit Graph

5 Commits

Author SHA1 Message Date
Martin Matuška a996649c2c [libarchive] process archive_read_next_header() return codes like bsdtar (#2427)
ARCHIVE_EOF and ARCHIVE_FATAL are the only valid exit codes
ARCHIVE_RETRY should read to re-entering the loop
All other codes (ARCHIVE_OK, ARCHIVE_WARN, ARCHIVE_FAILED) do not prohibit
the caller from reading data and next headers.

This behavior is identical with bsdtar (tar/read.c) and enables better
discovery of possible bugs by fuzzing.
2019-05-16 10:11:20 -07:00
Martin Matuška c7608cc5fe [libarchive] fix wrongly placed parentheses in 89ae65d (#307) 2017-01-22 06:22:08 -08:00
Abhishek Arya 89ae65d516 Fix compile error in libarchive 2017-01-21 08:19:48 -08:00
Martin Matuška 555a80407b [libarchive] correctly exit on read error in libarchive_fuzzer.cc (#305) (#305)
Thanks!
As we are discussing in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=234#c6
we encourage you to move this file into your repo. 
https://github.com/google/oss-fuzz/blob/master/docs/ideal_integration.md
2017-01-20 19:33:38 -08:00
Mike Aizatsky a143b9b39a [infra] renaming targets/ to projects/ 2016-11-29 10:55:25 -08:00