vcl/source/filter/iras/iras.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fe90f7fc34f8a6e354abbb48c21556d018fa768d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Aug 23 20:03:26 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Aug 24 09:34:38 2021 +0200 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 <caol...@redhat.com> 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: