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

LibArchive: Make TarInputStream::advance report errors

Fixes this bug that was reported by OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52862
This commit is contained in:
implicitfield 2022-11-11 18:44:12 +02:00 committed by Andrew Kaster
parent 26a4327b06
commit c88d8a21cc
4 changed files with 18 additions and 8 deletions

View file

@ -34,7 +34,7 @@ private:
class TarInputStream {
public:
TarInputStream(InputStream&);
void advance();
ErrorOr<void> advance();
bool finished() const { return m_finished; }
bool valid() const;
TarFileHeader const& header() const { return m_header; }