vcl/source/filter/png/PngImageReader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9bf469e6e458473f6432d80b31ef76526b5aaa39 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Oct 20 21:29:05 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Oct 21 12:27:01 2021 +0200 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 <caol...@redhat.com> 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())