http://bugs.winehq.org/show_bug.cgi?id=18930
Yann Droneaud yann@droneaud.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yann@droneaud.fr
--- Comment #4 from Yann Droneaud yann@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.