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 - Loading a font with high glyph numbers (>=0xe2355) causes SDL_ttf to run out of memory.
Summary: Loading a font with high glyph numbers (>=0xe2355) causes SDL_ttf to run out ...
Status: RESOLVED FIXED
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-14 01:08 UTC by PoroCYon
Modified: 2017-09-10 07:25 UTC (History)
0 users

See Also:


Attachments
The font file causing the mess. (57.21 KB, application/octet-stream)
2017-04-14 01:08 UTC, PoroCYon
Details

Note You need to log in before you can comment on or make changes to this bug.
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.