summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-07-15 18:48:23 +0200
committerDavid Tardon <dtardon@redhat.com>2015-07-15 18:48:23 +0200
commit1ffd6ef4ff54c47b65a78a44a9979083b54dba13 (patch)
treea5c1930733f4e4caa31f97d9ac0071b87b774226
parent943728197d471f4a1554ff320ff42bf5cfaac324 (diff)
afl: avoid null pointer dereference
Change-Id: I641e7ca93d903db3b2e211ec90e420dc249e162e
-rw-r--r--src/lib/VSD5Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/VSD5Parser.cpp b/src/lib/VSD5Parser.cpp
index 95b0766..1f1cef0 100644
--- a/src/lib/VSD5Parser.cpp
+++ b/src/lib/VSD5Parser.cpp
@@ -132,7 +132,7 @@ void libvisio::VSD5Parser::handleChunkRecords(librevenge::RVNGInputStream *input
void libvisio::VSD5Parser::readGeomList(librevenge::RVNGInputStream *input)
{
VSD_DEBUG_MSG(("VSD5Parser::readGeomList\n"));
- 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 = &m_shape.m_geometries[m_currentGeomListCount++];