DeSmuME is a Nintendo DS emulator
Go to file
riccardom 375fa0c94f Fix libagg crashes on 64bit
Putting a "\n" in OSDCLASS->addLine SIGSEGVs.

A newline is 10 in ASCII while the libagg's font starts
from a 32 (a space), so it nicely underflows and accesses
out-of-bounds memory in agg_glyph_raster_bin.h:90:

m_font + 4 + (glyph - start_char) * 2
m_font + 4 + (16 - 32) * 2

Should fix #2829308

Patch from kouteiheika, #3407304
2011-09-12 17:37:28 +00:00
desmume Fix libagg crashes on 64bit 2011-09-12 17:37:28 +00:00
tools fix that with less warnings 2011-08-23 22:27:29 +00:00