[Bug 18930] Failing to allocate an enormous image

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jun 13 16:39:49 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18930


Yann Droneaud <yann at droneaud.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann at droneaud.fr




--- Comment #4 from Yann Droneaud <yann at droneaud.fr>  2009-06-13 16:39:49 ---
(In reply to comment #0)
> I'm trying to run IDA Pro. However, Wine exits prematurely due to a BadAlloc
> error during a call to X_CreatePixmap. Debugging showed that the image it was
> trying to allocate was 39327 x 74239 x 32 -- nearly 3 gigapixels. I expect the
> error arises from trying to draw the code view or call graph.
> 
> I'm not sure what debugging information would be useful here so please advise
> what would be helpful.

Such Pixmap can't be created on a X11 server.

Afaik, Pixmap (as other drawable on X11) dimension are described as 16bits, so
no more than 65536.
See Xproto.h:

typedef struct {
    CARD8 reqType;
    CARD8 depth;
    CARD16 length B16;
    Pixmap pid B32;
    Drawable drawable B32;
    CARD16 width B16, height B16;
} xCreatePixmapReq;

Additionnaly, Xlib happily truncate an unsigned int to a 16bits value,
so in this case the X11 server should receive a request for a pixmap 39327 x
8703 x 32.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list