summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-20 21:29:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-21 12:27:01 +0200
commit9bf469e6e458473f6432d80b31ef76526b5aaa39 (patch)
tree4d0b1a8d050f3bddd085bd12d31d3c3dfce5ed2b /vcl
parent33d5c0248039c0b24a2adb4c2d4c1606f05e6278 (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I7e8a0824ec5dba8d2c97b0963704f228f1956e49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123908 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/png/PngImageReader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/png/PngImageReader.cxx b/vcl/source/filter/png/PngImageReader.cxx
index e3b3703c1cab..13c19feaf1ad 100644
--- a/vcl/source/filter/png/PngImageReader.cxx
+++ b/vcl/source/filter/png/PngImageReader.cxx
@@ -398,7 +398,7 @@ std::unique_ptr<sal_uInt8[]> getMsGifChunk(SvStream& rStream, sal_Int32* chunkSi
bool ignoreCrc = utl::ConfigManager::IsFuzzing();
for (;;)
{
- sal_uInt32 length, type, crc;
+ sal_uInt32 length(0), type(0), crc(0);
rStream.ReadUInt32(length);
rStream.ReadUInt32(type);
if (!rStream.good())