summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-30 11:38:34 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-30 11:38:42 +0200
commit8a41cf290a069fc45d68fb23620ba361acfbe313 (patch)
tree2bf50567e511ad7f07fe5b33649dd1a37eb08460
parent0921f77b64ba08ebfc484362d13bf6f5962fa41e (diff)
Consider the return value of getChunkHeader
-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();