diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-23 20:03:26 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-08-25 10:02:51 +0200 |
commit | 9841853b8a4b4cac06f59269189f50f3f73d79ab (patch) | |
tree | b6e61c1fc6500704a965d48fcde94044fdfeb6b5 | |
parent | d230a5caa7af87b9a2f5a642e7502f5b10cd952b (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>
(cherry picked from commit fe90f7fc34f8a6e354abbb48c21556d018fa768d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120977
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | vcl/source/filter/iras/iras.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/iras/iras.cxx b/vcl/source/filter/iras/iras.cxx index 128255fed025..49cfe2bef2cc 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: |