summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/VSDParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp
index 7fec7ec..e528df9 100644
--- a/src/lib/VSDParser.cpp
+++ b/src/lib/VSDParser.cpp
@@ -414,7 +414,8 @@ void libvisio::VSDParser::handleChunks(WPXInputStream *input, unsigned level)
while (!input->atEOS())
{
- getChunkHeader(input);
+ if (!getChunkHeader(input))
+ return;
m_header.level += level;
endPos = m_header.dataLength+m_header.trailer+input->tell();