[cairo] X crash with BadAlloc with too-large pixmap

Vladimir Vukicevic vladimir at pobox.com
Mon Jun 30 10:32:22 PDT 2008


Don't think I got a response last time -- any thoughts on this?  The  
fix seems reasonable to me, though I'd probably change the function  
name to _cairo_safe_XCreatePixmap or somesuch.

     - Vlad

On Mar 26, 2008, at 4:07 PM, Vladimir Vukicevic wrote:

>
> It seems to be possible to crash the xlib backend by trying to create
> an image with dimensions grater than SHRT_MAX, as would be expected
> due to X's limits.  Mats has a fix for this in bug https://bugzilla.mozilla.org/show_bug.cgi?id=424333
>  -- essentially, it wraps XCreatePixmap to something that checks
> width/height and returns an error in that case.  Does that seem like a
> reasonable fix?
>
>     - Vlad
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo



More information about the cairo mailing list