diff options
author | David Tardon <dtardon@redhat.com> | 2015-07-15 18:48:23 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-07-15 18:48:23 +0200 |
commit | 1ffd6ef4ff54c47b65a78a44a9979083b54dba13 (patch) | |
tree | a5c1930733f4e4caa31f97d9ac0071b87b774226 /src/lib/VSD5Parser.cpp | |
parent | 943728197d471f4a1554ff320ff42bf5cfaac324 (diff) |
afl: avoid null pointer dereference
Change-Id: I641e7ca93d903db3b2e211ec90e420dc249e162e
Diffstat (limited to 'src/lib/VSD5Parser.cpp')
-rw-r--r-- | src/lib/VSD5Parser.cpp | 2 |
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++]; |