mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
do not read sizeof(long) off the X connection. The X protocol does not
2003-01-22 Havoc Pennington <hp@redhat.com> * src/async-getprop.c (async_get_property_handler): do not read sizeof(long) off the X connection. The X protocol does not vary by architecture. Fixes longstanding hang on all 64-bit platforms.
This commit is contained in:
parent
a8526454b0
commit
e868a001f9
@ -1,3 +1,9 @@
|
||||
2003-01-22 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* src/async-getprop.c (async_get_property_handler): do not read
|
||||
sizeof(long) off the X connection. The X protocol does not vary
|
||||
by architecture. Fixes longstanding hang on all 64-bit platforms.
|
||||
|
||||
2003-01-22 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* src/tools/Makefile.am: fix conditional so we get
|
||||
|
@ -347,7 +347,7 @@ async_get_property_handler (Display *dpy,
|
||||
break;
|
||||
|
||||
case 32:
|
||||
nbytes = reply->nItems * sizeof (long);
|
||||
nbytes = reply->nItems * sizeof (CARD32);
|
||||
netbytes = reply->nItems << 2;
|
||||
if (nbytes + 1 > 0 &&
|
||||
(task->data = (unsigned char *) Xmalloc ((unsigned)nbytes + 1)))
|
||||
|
Loading…
Reference in New Issue
Block a user