diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-02 09:09:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-02 19:23:18 +0200 |
commit | 40c760ff73d9713b11b6c6b124dc27f0da17daf3 (patch) | |
tree | 4b79f097960a63c9e353ca2cd99b1db17191d99f /vcl | |
parent | 36ac73f5dc6a23c3275bbdb0a37f8fd98e416863 (diff) |
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@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/ipict/ipict.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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); |