summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-07-15 18:45:57 +0200
committerDavid Tardon <dtardon@redhat.com>2015-07-15 18:45:57 +0200
commit943728197d471f4a1554ff320ff42bf5cfaac324 (patch)
tree932454937115f11b6111e4dfade4a89532270c91
parentdb36f1a63b9d046f437e44072f43ff9bedcbd283 (diff)
afl: avoid null pointer dereference
Change-Id: Ice2a9440ca6bfa4c032186a4a65d6ed2e537648a
-rw-r--r--src/lib/VSDParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp
index 7c903ce..3cb284a 100644
--- a/src/lib/VSDParser.cpp
+++ b/src/lib/VSDParser.cpp
@@ -678,7 +678,7 @@ void libvisio::VSDParser::_handleLevelChange(unsigned level)
return;
if (level <= m_currentShapeLevel+1)
{
- if (!m_shape.m_geometries.empty() && m_currentGeometryList->empty())
+ if (!m_shape.m_geometries.empty() && m_currentGeometryList && m_currentGeometryList->empty())
{
m_shape.m_geometries.erase(--m_currentGeomListCount);
m_currentGeometryList = 0;