[Fontconfig] Did You Know That FT_Done_Face Can Return An Error?

Behdad Esfahbod behdad at behdad.org
Thu May 10 21:05:13 UTC 2018


Hi Lawrence,

What can I say without offending people....

I fully agree with you. Libraries should not crash **on bad data**. On
programmer error and invalid memory state, crashing is safest for avoiding
exploits and discovering and fixing bugs.



On Sat, May 5, 2018 at 4:48 PM, Lawrence D'Oliveiro <ldo at geek-central.gen.nz
> wrote:

> I notice that Fontconfig ignores possible error returns from
> FT_Done_Face and FT_Done_FreeType (cf src/fcdir.c, src/fcfreetype.c).
>
> Would you say this was wise? There seems to be a difference of opinion
> on the FreeType list
> <http://lists.nongnu.org/archive/html/freetype/2018-05/threads.html>
> about it.
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig
>



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig/attachments/20180510/8fa72400/attachment.html>


More information about the Fontconfig mailing list