FLTK logo

[fltk/fltk] Fix stack corruption while loading gif image (#199)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Fix stack corruption while loading gif image (#199) Kevin Routley Mar 10, 2021  
 

I have a GIF image which repeatedly causes a "Stack corruption around OutCode" error within Visual Studio.

After examining several GIF decode implementations, including one also derived from gif2ras (see [https://www.unf.edu/public/cap6400/ychua/xv-2.21/xvgif.c] ) I've determined that OutCode needs to be at least 4096, not the current 1024.

After changing the array size to 4097, the stack corruption no longer happens for the GIF image in question.

The GIF image which causes the error is attached in this ZIP [yes, it's SFW].

animu.ru-clannad-(2560x1920)-wallpaper-001.gif.zip


You can view, comment on, or merge this pull request online at:

  https://github.com/fltk/fltk/pull/199

Commit Summary

  • Merge pull request #1 from fltk/master
  • Create codeql-analysis.yml
  • Update codeql-analysis.yml
  • Merge pull request #2 from fltk/master
  • Fix OutCode array size to fix stack corruption

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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