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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 2 17:23:54 UTC 2021


 vcl/source/filter/ipict/ipict.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 40c760ff73d9713b11b6c6b124dc27f0da17daf3
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 2 09:09:33 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 2 19:23:18 2021 +0200

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

diff --git a/vcl/source/filter/ipict/ipict.cxx b/vcl/source/filter/ipict/ipict.cxx
index a04ed8034eed..e441603426f2 100644
--- a/vcl/source/filter/ipict/ipict.cxx
+++ b/vcl/source/filter/ipict/ipict.cxx
@@ -1560,6 +1560,9 @@ sal_uInt64 PictReader::ReadData(sal_uInt16 nOpcode)
         aPenPosition=ReadDeltaV(aPenPosition);
         nDataSize=2;
 
+        if (!pPict->good())
+            break;
+
         if (IsInvisible( PictDrawingMethod::FRAME )) break;
         DrawingMethod( PictDrawingMethod::FRAME );
         PictReaderShape::drawLine(pVirDev, aPoint,aPenPosition, nActPenSize);


More information about the Libreoffice-commits mailing list