summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-03 09:08:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-03 11:39:24 +0100
commitee1d3fce6b1fe42ed70a99511ee18785e987da0f (patch)
tree65313772464d58af3cfb627128a7d5498baaa7bf /vcl
parent028602a7fc0691958ade01c9bc7cd617e85203ac (diff)
ofz#44303 Null-dereference
Change-Id: I2202ca853edea29e987e920b1f8bf65ca622291e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129397 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/webp/reader.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/filter/webp/reader.cxx b/vcl/source/filter/webp/reader.cxx
index 5ec8fa4870c2..3c0b1399cad2 100644
--- a/vcl/source/filter/webp/reader.cxx
+++ b/vcl/source/filter/webp/reader.cxx
@@ -89,6 +89,8 @@ static bool readWebp(SvStream& stream, Graphic& graphic)
}
BitmapScopedWriteAccess access(bitmap);
+ if (!access)
+ return false;
// If data cannot be read directly into the bitmap, read data first to this buffer and then convert.
std::vector<uint8_t> tmpRgbaData;
enum class PixelMode