XCreatePixmap returns BadAlloc for a 8300 wide image in latest git
Alan Coopersmith
alan.coopersmith at sun.com
Mon Jun 18 18:30:14 PDT 2007
Barry Scott wrote:
> The limit on pixmap size used to be 32767 (32768?) but our code is getting
> a BadAlloc of a pixmap that is 8300 wide.
>
> Why has the limit been changed and why can't it be set back to its
> original limit?
This may be a bug in the pixmap overflow security fixes from 2005 - I know
one of our engineers working on the cfb version of the fixes found that they
over-limited by a factor of 4 because they checked the PaddedByte size
instead of the pixel width, so limited 32-bit pixmaps to a width of 8191
instead of 32767.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the xorg
mailing list