mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
FuzzTar+tar: Advance the stream before continuing
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53733
This bug was caused by a regression introduced in c88d8a2
.
This commit is contained in:
parent
73e87d694e
commit
19e6befddc
2 changed files with 8 additions and 2 deletions
|
@ -124,6 +124,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
TRY(tar_stream.advance());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -141,6 +142,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
long_name.append(reinterpret_cast<char*>(buffer.data()), bytes_read);
|
||||
|
||||
local_overrides.set("path", long_name.to_string());
|
||||
TRY(tar_stream.advance());
|
||||
continue;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue