Fix issue 357: Program hangs when loading GIF images with unknown Application Extension Blocks
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1507 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
2441c5cfd7
commit
b643695786
@ -1937,6 +1937,16 @@ void Load_GIF(T_IO_Context * context)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Unknown extension, skip.
|
||||||
|
Read_byte(GIF_file,&size_to_read);
|
||||||
|
while (size_to_read!=0 && !File_error)
|
||||||
|
{
|
||||||
|
fseek(GIF_file,size_to_read,SEEK_CUR);
|
||||||
|
Read_byte(GIF_file,&size_to_read);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user