From 9bf469e6e458473f6432d80b31ef76526b5aaa39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Oct 2021 21:29:05 +0100 Subject: [PATCH] ofz: MemorySanitizer: use-of-uninitialized-value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7e8a0824ec5dba8d2c97b0963704f228f1956e49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123908 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/filter/png/PngImageReader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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())