mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibArchive: Use read_entire_buffer for reading extended headers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53913
This commit is contained in:
parent
28c99e7a1f
commit
ebcd07ff33
Notes:
sideshowbarker
2024-07-17 01:58:21 +09:00
Author: https://github.com/implicitfield
Commit: ebcd07ff33
Pull-request: https://github.com/SerenityOS/serenity/pull/16626
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/timschumi ✅
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ inline ErrorOr<void> TarInputStream::for_each_extended_header(F func)
|
|||
|
||||
auto header_size = TRY(header().size());
|
||||
ByteBuffer file_contents_buffer = TRY(ByteBuffer::create_zeroed(header_size));
|
||||
VERIFY(TRY(file_stream.read(file_contents_buffer)).size() == header_size);
|
||||
TRY(file_stream.read_entire_buffer(file_contents_buffer));
|
||||
|
||||
StringView file_contents { file_contents_buffer };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue