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:
parent
cbeaba0c12
commit
fd3a823a20
4 changed files with 9 additions and 16 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue