oox/source/drawingml/diagram/diagramlayoutatoms.cxx |    6 ++++++
 sw/qa/core/data/ooxml/fail/ofz14422-1.docx          |binary
 2 files changed, 6 insertions(+)

New commits:
commit b7662cffb5e12935ffaa4252c081659165600ada
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Apr 24 11:38:53 2019 +0100
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Fri Apr 26 11:32:49 2019 +0200

    ofz#14422 null deref
    
    Change-Id: Icd00e2aaa5932564668cd12ce4ee63aecc34419a
    Reviewed-on: https://gerrit.libreoffice.org/71305
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx 
b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
index 1832183d298a..bc30ec38e219 100644
--- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
+++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
@@ -1277,6 +1277,12 @@ bool LayoutNode::setupShape( const ShapePtr& rShape, 
const dgm::Point* pPresNode
                 continue;
             }
 
+            if (!aDataNode2->second->mpShape)
+            {
+                //busted, skip it
+                continue;
+            }
+
             rShape->setDataNodeType(aDataNode2->second->mnType);
 
             if( rItem.mnDepth == 0 )
diff --git a/sw/qa/core/data/ooxml/fail/ofz14422-1.docx 
b/sw/qa/core/data/ooxml/fail/ofz14422-1.docx
new file mode 100644
index 000000000000..8284f6afc4b3
Binary files /dev/null and b/sw/qa/core/data/ooxml/fail/ofz14422-1.docx differ
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to