diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-30 14:02:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-31 15:20:54 +0200 |
commit | 903b232eb3b97e3557ef8c918e0a6474d197ef56 (patch) | |
tree | 21cd24d721f1b85cefbdac1192e698d8ca1f2e1c /vcl | |
parent | 3ab647fa6cb0587668f93bea0b8de9237b71a0cc (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I9c7eae9b8744b946a00b6285f4f0ed83d63f4834
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121333
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/GraphicFormatDetector.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/GraphicFormatDetector.cxx b/vcl/source/filter/GraphicFormatDetector.cxx index 69aa225eb108..fc4db66f2031 100644 --- a/vcl/source/filter/GraphicFormatDetector.cxx +++ b/vcl/source/filter/GraphicFormatDetector.cxx @@ -668,7 +668,7 @@ bool GraphicFormatDetector::checkXBM() std::unique_ptr<sal_uInt8[]> pBuffer(new sal_uInt8[nSize]); mrStream.Seek(mnStreamPosition); - mrStream.ReadBytes(pBuffer.get(), nSize); + nSize = mrStream.ReadBytes(pBuffer.get(), nSize); const char* pBufferAsCharArray = reinterpret_cast<char*>(pBuffer.get()); |