We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3629

Summary: Loading a font with high glyph numbers (>=0xe2355) causes SDL_ttf to run out of memory.
Product: SDL_ttf Reporter: PoroCYon <porocyon>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: Linux   
Attachments: The font file causing the mess.

Description PoroCYon 2017-04-14 01:08:50 UTC
Created attachment 2720 [details]
The font file causing the mess.

In version 2.0.14*, calling `TTF_OpenFont` with a font with exotic glyphs (added as an attachment) causes the process to allocate more and more memory, until it runs out.

The font can be seen here: http://zanxi.jbo.run/ (does not cause my browser to run out of memory, however.)

*: Arch package
Comment 1 Sam Lantinga 2017-09-10 07:25:55 UTC
Tested with the latest SDL_ttf at http://hg.libsdl.org/SDL_ttf and FreeType 2.8, with no problems.

I suspect this was a bug in the version of FreeType shipped with SDL_ttf and this has been fixed.