Re: Did You Know That FT_Done_Face Can Return An Error?

Werner LEMBERG <[email protected]> Fri, 11 May 2018 06:32:16 +0200 (CEST)
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
> 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.

Well, the stdc version of `free' *does* crash if you try to improperly
deallocate memory blocks.  And it returns an error code on programmer
error (i.e., an invalid `FT_Face' handle).


    Werner
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig