summaryrefslogtreecommitdiff
path: root/src/Fl_GIF_Image.cxx
diff options
context:
space:
mode:
authorfire-eggs <lifeattickville@gmail.com>2021-03-10 13:17:25 -0500
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-03-18 07:02:14 +0100
commit0688c77c333f47c76c5dc4a945942220ea80194a (patch)
tree42b3370ae7ceddca66c2a74cc6d3004831d81c15 /src/Fl_GIF_Image.cxx
parenta4866ffc213f27618ffcf9718f1a18007bf779a3 (diff)
Fix stack corruption when loading GIF
Diffstat (limited to 'src/Fl_GIF_Image.cxx')
-rw-r--r--src/Fl_GIF_Image.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_GIF_Image.cxx b/src/Fl_GIF_Image.cxx
index 417fac49c..d747ac480 100644
--- a/src/Fl_GIF_Image.cxx
+++ b/src/Fl_GIF_Image.cxx
@@ -337,7 +337,7 @@ void Fl_GIF_Image::load_gif_(Fl_Image_Reader &rdr)
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;