![]() 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 |
||
---|---|---|
desmume | ||
tools |