misc sanity checks in freetype.c

Dmitry Timoshkov dmitry at baikal.ru
Fri Oct 3 21:59:26 CDT 2003


<Dave_Belanger at cimmetry.com> wrote:

> @@ -1956,13 +1960,20 @@
>      needed = sizeof(*potm);
>  
>      lenfam = (strlenW(font->name) + 1) * sizeof(WCHAR);
> +    if (!lenfam) {
> +        /* No family name. How can we select that font? */
> +        ret = 0;
> +        goto end;
> +    }

lenfam can't be 0 due to + 1 here.

-- 
Dmitry.





More information about the wine-devel mailing list