vcl/source/filter/svm/SvmReader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 567c6c123094bf58c14ddac94e962cc62bc839b3 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Aug 29 10:52:16 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Aug 29 16:32:29 2021 +0200 ofz: MemorySanitizer: use-of-uninitialized-value Change-Id: I47a7b783a28c36f516334e3d8953127d45d56152 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121216 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx index 8aec254cfdb9..7e0780b93e1a 100644 --- a/vcl/source/filter/svm/SvmReader.cxx +++ b/vcl/source/filter/svm/SvmReader.cxx @@ -79,7 +79,7 @@ SvStream& SvmReader::Read(GDIMetaFile& rMetaFile, ImplMetaReadData* pData) aId[0] = 0; aId[6] = 0; mrStream.ReadBytes(aId, 6); - if (!strcmp(aId, "VCLMTF")) + if (mrStream.good() && !strcmp(aId, "VCLMTF")) { // new format sal_uInt32 nStmCompressMode = 0;