vcl/source/filter/GraphicFormatDetector.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 903b232eb3b97e3557ef8c918e0a6474d197ef56 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Aug 30 14:02:10 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Aug 31 15:20:54 2021 +0200 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 <caol...@redhat.com> 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());