1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibArchive: Implement proper support for Tar file end markers

Previously this was handled implicitly, as our implementation of Tar
would just stop processing input as soon as it found something invalid.
However, since we now error out as soon as something is found to be
wrong, we require proper handling for zero blocks, which aren't actually
fatal.
This commit is contained in:
Tim Schumacher 2022-11-29 01:01:13 +01:00 committed by Andreas Kling
parent cb48b9bc30
commit 714f0c3dce
4 changed files with 33 additions and 7 deletions

View file

@ -129,6 +129,7 @@ public:
unsigned expected_checksum() const;
void calculate_checksum();
bool is_zero_block() const;
bool content_is_like_extended_header() const;
void set_filename_and_prefix(StringView filename);