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

Adam Jackson ajax at redhat.com
Fri Nov 16 10:04:48 PST 2012


On Thu, 2012-11-08 at 12:19 -0500, Adam Jackson wrote:
> On 10/31/12 4:13 PM, Adam Jackson wrote:
> > malloc(0) needn't return NULL, and on glibc, doesn't.  Then we encounter
> > a loop of the form do { ... } while (--c), which doesn't do quite what
> > you were hoping for when c is initially 0.
> >
> > Since there's nothing to swap in this case, just bomb out.
> 
> Bump.  Anything else I need to add here?

Another week, another ping.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121116/0b3c32ef/attachment.pgp>


More information about the cairo mailing list