From: Fridrich S. <str...@us...> - 2008-07-22 15:46:26
|
Update of /cvsroot/libwpg/libwpg/src/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9806/src/lib Modified Files: WPG2Parser.cpp Log Message: another defensive condition, just to make sum1's waiting for Godot longer Index: WPG2Parser.cpp =================================================================== RCS file: /cvsroot/libwpg/libwpg/src/lib/WPG2Parser.cpp,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- WPG2Parser.cpp 22 Jul 2008 15:32:24 -0000 1.75 +++ WPG2Parser.cpp 22 Jul 2008 15:36:49 -0000 1.76 @@ -1470,7 +1470,7 @@ WPG_DEBUG_MSG(("Decoding RLE data\n")); // FIXME check for ptr, it should not go out of bound!! - while (m_input->tell() <= m_recordEnd) + while (m_input->tell() <= m_recordEnd && !m_input->atEOS()) { unsigned char opcode = readU8(); // specify data size |