[Libreoffice-commits] libvisio.git: src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Sun Jun 30 02:39:02 PDT 2013
src/lib/VSDParser.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8a41cf290a069fc45d68fb23620ba361acfbe313
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Sun Jun 30 11:38:34 2013 +0200
Consider the return value of getChunkHeader
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();
More information about the Libreoffice-commits
mailing list