Re: [PATCH] fix crashes on malformed fonts.cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dirk Mueller wrote:
> Hi, 
> 
> This one fixes a memory overrun when a fonts.cache file is slightly malformed. 
> other places probably need similiar fixes. 

Other places probably ought to be fixed similarly, although this is
unlikely to happen by chance.

> -    if (nfont > 0)
> +    if (nfont > 0 && s->nfont < s->nfont + nfont)

I'm about to commit the correct version of this patch, which doesn't
include the inadvertently wholly redundant check...

pat
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux