summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-23 20:03:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-24 09:34:38 +0200
commitfe90f7fc34f8a6e354abbb48c21556d018fa768d (patch)
tree0ec7799ebd49dc87db6573c6d24c49805c0b4865
parent6097ea726dcc087694a600cf823761097e3ba13e (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I4e592de5ff830aa970b96993c79a5d957f57adfc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120922 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/filter/iras/iras.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/iras/iras.cxx b/vcl/source/filter/iras/iras.cxx
index 415e3224d6fb..cc0c2a5062a9 100644
--- a/vcl/source/filter/iras/iras.cxx
+++ b/vcl/source/filter/iras/iras.cxx
@@ -94,7 +94,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
m_rRAS.SetEndian( SvStreamEndian::BIG );
m_rRAS.ReadUInt32( nMagicNumber );
- if ( nMagicNumber != SUNRASTER_MAGICNUMBER )
+ if (!m_rRAS.good() || nMagicNumber != SUNRASTER_MAGICNUMBER)
return false;
// Kopf einlesen: