[cairo] [PATCH 1/2] xlib: Don't crash when swapping a 0-sized glyph

Adam Jackson ajax at redhat.com
Thu Nov 8 13:30:54 PST 2012


On 11/8/12 4:04 PM, Behdad Esfahbod wrote:
> On 12-11-08 09:19 AM, Adam Jackson wrote:
>> malloc(0) needn't return NULL, and on glibc, doesn't.
>
> BTW, is this a recent change?  I noticed a bug because of it in harfbuzz also.

I don't believe so.  RHEL5's glibc has this property, so it's probably 
been this way since at least 2006.

- ajax



More information about the cairo mailing list