[Bug 11304] Wine Notepad: Overflow.

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Aug 27 08:15:03 CDT 2008


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


Gabriele Moabiti <gabmoa at yahoo.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gabmoa at yahoo.it




--- Comment #4 from Gabriele Moabiti <gabmoa at yahoo.it>  2008-08-27 08:15:02 ---

I have developed a terminal app for a cnc and I am trying to port to linux with
wine. I have noticed a problem maybe related to this one. It appears in hangs
or errors so I have created a very simple application to reproduce only this
problem
(see attachment). There are two input parameters, the lenght of the string and
the
ascii number of character.

[example, error with char 32 and lenght 21843 - Wine 1.1.2]
X Error of failed request:  BadLength (poly request too large or internal Xlib
length error)
  Major opcode of failed request:  156 (RENDER)
  Minor opcode of failed request:  24 (RenderCompositeGlyphs16)
  Serial number of failed request:  934
  Current serial number in output stream:  935

I noticed the ExtTextOutW use a WORD for glyps.

 BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags, const RECT
*lprect, LPCWSTR str, UINT count, const INT *lpDx )
{
BOOL ret = FALSE;
LPWSTR reordered_str = (LPWSTR)str;
WORD *glyphs = NULL;
...

may be related to this error?

Any ideas?? Textout is widely used...


-- 
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