[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 3 14:20:37 UTC 2021
vcl/source/filter/GraphicFormatDetector.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5dff497309fe6034318c75efd40bb480e34f331a
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 2 10:35:24 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 3 16:20:02 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I3a45c8141b9f824c985dcf1aaac5d1aa45c0f70d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121575
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/filter/GraphicFormatDetector.cxx b/vcl/source/filter/GraphicFormatDetector.cxx
index 264e6d9136c6..dafe7f5222b4 100644
--- a/vcl/source/filter/GraphicFormatDetector.cxx
+++ b/vcl/source/filter/GraphicFormatDetector.cxx
@@ -535,7 +535,7 @@ bool GraphicFormatDetector::checkPCD()
return false;
char sBuffer[8];
mrStream.Seek(mnStreamPosition + 2048);
- mrStream.ReadBytes(sBuffer, 7);
+ sBuffer[mrStream.ReadBytes(sBuffer, 7)] = 0;
if (strncmp(sBuffer, "PCD_IPI", 7) == 0)
{
More information about the Libreoffice-commits
mailing list