[master] 0688c77 - Fix stack corruption when loading GIF

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 0688c77 - Fix stack corruption when loading GIF "fire-eggs" 23:17 Mar 17 top right image
 
commit 0688c77c333f47c76c5dc4a945942220ea80194a
Author:     fire-eggs <lifeattickville@gmail.com>
AuthorDate: Wed Mar 10 13:17:25 2021 -0500
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu Mar 18 07:02:14 2021 +0100

    Fix stack corruption when loading GIF

 src/Fl_GIF_Image.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_GIF_Image.cxx src/Fl_GIF_Image.cxx
index 417fac4..d747ac4 100644
--- src/Fl_GIF_Image.cxx
+++ 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;
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.