[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 30 15:54:30 UTC 2021


 vcl/source/bitmap/dibtools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 34f54a86d02513c1859ca9529da7b2d3a3eb9bb1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 11:28:07 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Aug 30 17:53:56 2021 +0200

    ofz: MemorySanitizer: use-of-uninitialized-value
    
    Change-Id: I931c104c2b0072146580996b6adc0bb36f328083
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121294
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/bitmap/dibtools.cxx b/vcl/source/bitmap/dibtools.cxx
index 17e5c51c88ca..6665d09daa41 100644
--- a/vcl/source/bitmap/dibtools.cxx
+++ b/vcl/source/bitmap/dibtools.cxx
@@ -1771,7 +1771,7 @@ bool ReadDIBBitmapEx(
                         tools::GenericTypeSerializer aSerializer(rIStm);
                         aSerializer.readColor(aTransparentColor);
 
-                        bRetval = !rIStm.GetError();
+                        bRetval = rIStm.good();
 
                         if(bRetval)
                         {


More information about the Libreoffice-commits mailing list