diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-23 20:47:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-23 22:54:28 +0200 |
commit | 09995c09f78e245f717bf0560680b832f2f73967 (patch) | |
tree | 677e51d0f6b6d25add8caad0cbfb809ad93705e7 /emfio/source | |
parent | 41a43ac7376a8ff4aeb85e27f644bc1d0891d7b0 (diff) |
ofz#2956: Conditional jump or move depends on uninitialised value
Change-Id: I399c2eb2379b23568dda83f9d41473858f33a802
Reviewed-on: https://gerrit.libreoffice.org/42699
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio/source')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index 54b4a4c04e57..8203951029f8 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -1378,7 +1378,7 @@ namespace emfio Bitmap aBitmap; tools::Rectangle aRect( Point( xDest, yDest ), Size( cxDest, cyDest ) ); - if ( (cbBitsSrc > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBitsSrc < cbBmiSrc) ) + if (!mpInputStream->good() || (cbBitsSrc > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBitsSrc < cbBmiSrc)) bStatus = false; else { |