Bugzilla – Bug 145040
SDL_ttf TTF_OpenFont segfault on nonexistant file passed
Last modified: 2006-01-25 13:34:09 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
Thanks for reporting this.
fixed for 10.1 beta3