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:
Havoc Pennington 2003-01-22 23:13:24 +00:00 committed by Havoc Pennington
parent a8526454b0
commit e868a001f9
2 changed files with 7 additions and 1 deletions

View File

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

View File

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