Fix as found in pull request #200 "Fix stack corruption when loading GIF"

This commit is contained in:
ManoloFLTK 2021-03-18 07:06:19 +01:00
parent 7c96005a63
commit e301cd2a10

View File

@ -298,7 +298,7 @@ Fl_GIF_Image::Fl_GIF_Image(const char *infname) : Fl_Pixmap((char *const*)0) {
if (CurCode == EOFCode) break;
uchar OutCode[1025]; // temporary array for reversing codes
uchar OutCode[4097]; // temporary array for reversing codes
uchar *tp = OutCode;
int i;
if (CurCode < FreeCode) i = CurCode;