[vlc-devel] [PATCH] freetype: fix NULL deref
tillmann at selfnet.de
Wed Jul 17 02:42:14 CEST 2013
On 2013-07-16 19:08, Rémi Denis-Courmont wrote:
> On Saturday 13 July 2013 17:26:56 Tillmann Karras wrote:
> Should fix #8960.
> I am not sure that this is completely correct:
> if( p_face->family_name != NULL
> + && p_style->psz_fontname != NULL
> && !strcasecmp( p_face->family_name, p_style->psz_fontname )
> Presumably, if both names are NULL, then they compare equal, no?
I looked it up and it turns out the behavior is undefined (according to
section 7.1.4 of the final draft  of ISO/IEC 9899:2011 aka C11).
More information about the vlc-devel