FS#39071 - [sdl_ttf] memory corruption in SDL_ttf
Attached to Project:
Arch Linux
Opened by Christian Bielert (cib) - Friday, 28 February 2014, 01:40 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 28 February 2014, 20:54 GMT
Opened by Christian Bielert (cib) - Friday, 28 February 2014, 01:40 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 28 February 2014, 20:54 GMT
|
Details
Attached is a simple 13 line C program that causes the crash
to happen. I tested the program on two separate arch linux
machines, and could reproduce the crash on both machines. I
tested it on a Debian VM, and the crash did not occur
there.
Compile with: gcc -I /usr/include/SDL/ -lSDL -lSDL_ttf reproduce_SDL_ttf_bug.c -o test You can also compile with -I /usr/include/SDL2/ -lSDL2 -lSDL2_ttf, the same thing will happen. Detailed crash log can be found in the attached archive. |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Friday, 28 February 2014, 20:54 GMT
Reason for closing: Upstream
Additional comments about closing: Freetype bug, will be fixed in 2.5.3.
Friday, 28 February 2014, 20:54 GMT
Reason for closing: Upstream
Additional comments about closing: Freetype bug, will be fixed in 2.5.3.
-----------------------
#include "SDL.h"
#include "SDL_ttf.h"
int main() {
SDL_Init(0);
TTF_Init();
TTF_Font* fnt = TTF_OpenFontIndex("terminus.fon", 15, 0);
if(fnt != NULL) {
TTF_CloseFont(fnt);
fnt = NULL;
}
}
https://savannah.nongnu.org/bugs/?40997
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=5f577462bd7cc8e2ca6fe4a1efecee6d8a95e7be