Bug 145040

Summary: SDL_ttf TTF_OpenFont segfault on nonexistant file passed
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Dennis Lubert <plasmahh>
Component: OtherAssignee: Vladimir Nadvornik <nadvornik>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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