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

Adam Jackson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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?

- ajax

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.