summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-19 10:00:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-19 15:42:49 +0100
commite63c6fe93ebd702c8c62378830d69343003b91bc (patch)
treefdf58eb44e13a88106aa148ce45a05d844900507
parent8460a4dcac8a23e03a6b7d1669a46ad60a6b7a6e (diff)
afl-eventtesting: deref of null MarkedSdrObj
Change-Id: I0fe9cb55de114c7e2ad45cd946e94f9c0e93b85c
-rw-r--r--svx/source/svdraw/svdmrkv.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 5d4f77bc271e..06494c643fc0 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -2006,7 +2006,9 @@ const Rectangle& SdrMarkView::GetMarkedObjRect() const
Rectangle aRect2;
for (size_t nm=0; nm<GetMarkedObjectCount(); ++nm) {
SdrMark* pM=GetSdrMarkByIndex(nm);
- SdrObject* pO=pM->GetMarkedSdrObj();
+ SdrObject* pO = pM->GetMarkedSdrObj();
+ if (!pO)
+ continue;
Rectangle aR1(pO->GetSnapRect());
// apply calc offset to marked object rect
// ( necessary for handles to be displayed in