diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-02 15:07:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-03 16:09:27 +0200 |
commit | aa9e05236b73067e34d34d9861fc394ba854399b (patch) | |
tree | 7e78ac2119eef2632163f0b91f41551b2d26e90e /vcl | |
parent | e4b1ba9447a0a56aa56400f9f44d8eecb6c11e9c (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I9f67d463958e3b3ce88b771dd8ca0f71f7393e32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121537
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/dibtools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/dibtools.cxx b/vcl/source/bitmap/dibtools.cxx index 6665d09daa41..296be1dc1def 100644 --- a/vcl/source/bitmap/dibtools.cxx +++ b/vcl/source/bitmap/dibtools.cxx @@ -256,7 +256,7 @@ bool ImplReadDIBInfoHeader(SvStream& rIStm, DIBV5Header& rHeader, bool& bTopDown return false; } - if (rHeader.nHeight == SAL_MIN_INT32) + if (!rIStm.good() || rHeader.nHeight == SAL_MIN_INT32) return false; if ( rHeader.nHeight < 0 ) |