[PATCH libXi] Allocate enough memory for raw events + extra data.
jeremyhu at apple.com
Tue May 3 09:35:44 PDT 2011
Ok, then I'll just
On May 3, 2011, at 8:59 AM, Alan Coopersmith wrote:
> On 05/ 2/11 11:00 PM, Jeremy Huddleston wrote:
>>> "undefined allocation of 0 bytes" would be a server bug afaict
>> I dunno... is there anywhere that we guarantee that Xmalloc(0) returns NULL? If so, then the macro should probably be ((size) > 0 ? malloc(size) : NULL) ... hopefully there is nothing actually using side-effects inside of Xmalloc(...) ...
> We guarantee Xmalloc(0) returns non-NULL - from <X11/Xlibint.h>:
Ok, addressed in Xlib. That should clear up a number of false positives.
More information about the xorg-devel