diff options
author | Even Rouault <even.rouault@spatialys.com> | 2024-02-20 20:42:28 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2024-02-20 22:02:42 +0000 |
commit | 6a4d5323efd9651ab2ee5a0f921bdeb55fa61b0b (patch) | |
tree | 1cd6e48afa7fce747a414411669f55e7ff5ebbcb | |
parent | 30acc0bbd2c773b2709aa9138e94729439fb3025 (diff) |
ImageStream::getLine(): check that imgLine is not null
Related to https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66523
-rw-r--r-- | poppler/Stream.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Stream.cc b/poppler/Stream.cc index 42d18880..9facf1c0 100644 --- a/poppler/Stream.cc +++ b/poppler/Stream.cc @@ -656,7 +656,7 @@ bool ImageStream::getPixel(unsigned char *pix) unsigned char *ImageStream::getLine() { - if (unlikely(inputLine == nullptr)) { + if (unlikely(inputLine == nullptr || imgLine == nullptr)) { return nullptr; } |