1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

LibArchive: Move loading the next tar header into a helper function

This now also validates the first header that is loaded, so we can drop
the corresponding FIXME from `tar`.
This commit is contained in:
Tim Schumacher 2022-11-28 19:07:39 +01:00 committed by Andreas Kling
parent cbeaba0c12
commit fd3a823a20
4 changed files with 9 additions and 16 deletions

View file

@ -25,9 +25,6 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
auto tar_stream = tar_stream_or_error.release_value();
if (!tar_stream->valid())
return 0;
while (!tar_stream->finished()) {
auto const& header = tar_stream->header();