23 Aug
2008
23 Aug
'08
11:49 p.m.
"Muneyuki Noguchi" <nogu.dev(a)gmail.com> wrote:
winex11.drv: Fix buffer overflow bug in X11DRV_KeyEvent() and X11DRV_ToUnicodeEx()
+ Str = (char *)malloc(64); + if (Str == NULL) + ERR("Failed to allocate memory!\n");
Please don't use malloc() in Wine, use win32 Heap*** APIs instead. Also, you need to properly handle memory allocation errors, not just print an ERR. -- Dmitry.