[Libreoffice-commits] core.git: emfio/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 31 18:37:36 UTC 2021
emfio/source/reader/emfreader.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit dfde7cef704533fa9e352225ee596da7e2e106d1
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 17:03:06 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 31 20:37:00 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I40ab9dc8b320990abcf89630984892e040a8544d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121380
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx
index ff1ce2a75fa2..e6330987f1bc 100644
--- a/emfio/source/reader/emfreader.cxx
+++ b/emfio/source/reader/emfreader.cxx
@@ -1657,13 +1657,13 @@ namespace emfio
else
cxSrc = cySrc = 0;
- Bitmap aBitmap;
- tools::Rectangle aRect( Point( xDest, yDest ), Size( cxDest, cyDest ) );
-
if (!mpInputStream->good() || (cbBitsSrc > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBitsSrc < cbBmiSrc))
bStatus = false;
else
{
+ Bitmap aBitmap;
+ tools::Rectangle aRect(Point(xDest, yDest), Size(cxDest, cyDest));
+
sal_uInt32 nSize = cbBmiSrc + cbBitsSrc + 14;
if ( nSize <= ( mnEndPos - mnStartPos ) )
{
More information about the Libreoffice-commits
mailing list