diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-05 09:17:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-05 11:38:13 +0200 |
commit | 740190b972c6f078f8efa1b80f2646b90b7986e6 (patch) | |
tree | e94d1f86b4ad1e8b82b7a5927574d293cbec0248 /emfio/source | |
parent | 1caa289a9b7ed54b01b7a425f6e40578d9184cb1 (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Ib8b337609afa4f588878a1e08eb74fca28fc0534
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121666
Tested-by: Jenkins
Reviewed-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 52ad30510bf7..f72db2353829 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -2095,7 +2095,7 @@ namespace emfio mpInputStream->ReadUInt32( offBits ); mpInputStream->ReadUInt32( cbBits ); - if ( (cbBits > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBits < cbBmi) ) + if ( !mpInputStream->good() || (cbBits > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBits < cbBmi) ) bStatus = false; else if ( offBmi ) { |