1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:07:36 +00:00

LibGfx/JPEG: Propagate errors when creating JPEGLoadingContext

This allows the JPEG fuzzer to make progress.
This commit is contained in:
Tim Ledbetter 2023-10-29 10:31:04 +00:00 committed by Jelle Raaijmakers
parent a42d849ec1
commit 9ed8c0b183
2 changed files with 6 additions and 5 deletions

View file

@ -28,9 +28,9 @@ public:
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override;
private:
JPEGImageDecoderPlugin(NonnullOwnPtr<FixedMemoryStream>);
JPEGImageDecoderPlugin(NonnullOwnPtr<JPEGLoadingContext>);
OwnPtr<JPEGLoadingContext> m_context;
NonnullOwnPtr<JPEGLoadingContext> m_context;
};
}