wmf_player_int in player.c does not initialize the data
structure properly and causes a seg fault when it tires to
access the default_font later.
When it tries to access the user_data element for font
resolution in wmf_ipa_font_map(font.c) it crashes
because the user_data element in _wmfFont (ipa.h)
is not initialized to NULL.
place a memset(P,0,sizeof(wmfPlayer_t)) after the new
P->flags = 0;
P->default_font.user_data = 0;
I like the first option, less room for possible other
Log in to post a comment.