Bug 145040 - SDL_ttf TTF_OpenFont segfault on nonexistant file passed
Summary: SDL_ttf TTF_OpenFont segfault on nonexistant file passed
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Major
Target Milestone: ---
Assignee: Vladimir Nadvornik
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 23:22 UTC by Dennis Lubert
Modified: 2006-01-25 13:34 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Lubert 2006-01-23 23:22:54 UTC
Hello,

the first parameter to the TTF_OpenFont function of SDL_ttf is a const char* to the filename containing the font file. If the file does not exist, or is not accesible, the 2.0.6 version of the library segfaults. Upgrading to 2.0.7 solves the problem, and TTF_OpenFont returns NULL as stated in the documentation.

greets

Dennis
Comment 1 Michael Gross 2006-01-24 16:20:35 UTC
Thanks for reporting this.
Comment 2 Vladimir Nadvornik 2006-01-25 13:34:09 UTC
fixed for 10.1 beta3