blind fix for wxGIFDecoder::ReadGIF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -653,6 +653,9 @@ int wxGIFDecoder::ReadGIF()
|
|||||||
/* try to read to the end of the stream */
|
/* try to read to the end of the stream */
|
||||||
while (type != 0x3B)
|
while (type != 0x3B)
|
||||||
{
|
{
|
||||||
|
if (!m_f->IsOk())
|
||||||
|
return wxGIF_TRUNCATED;
|
||||||
|
|
||||||
type = (unsigned char)m_f->GetC();
|
type = (unsigned char)m_f->GetC();
|
||||||
|
|
||||||
if (type == 0x21)
|
if (type == 0x21)
|
||||||
|
Reference in New Issue
Block a user