Merge branch 'server-1.4-branch' into xorg-server-1.4-apple
This commit is contained in:
commit
1b22192e50
36
Xext/shm.c
36
Xext/shm.c
|
@ -737,14 +737,6 @@ ProcPanoramiXShmCreatePixmap(
|
|||
}
|
||||
if (width > 32767 || height > 32767)
|
||||
return BadAlloc;
|
||||
size = PixmapBytePad(width, depth) * height;
|
||||
if (sizeof(size) == 4) {
|
||||
if (size < width * height)
|
||||
return BadAlloc;
|
||||
/* thankfully, offset is unsigned */
|
||||
if (stuff->offset + size < size)
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
if (stuff->depth != 1)
|
||||
{
|
||||
|
@ -755,7 +747,17 @@ ProcPanoramiXShmCreatePixmap(
|
|||
client->errorValue = stuff->depth;
|
||||
return BadValue;
|
||||
}
|
||||
|
||||
CreatePmap:
|
||||
size = PixmapBytePad(width, depth) * height;
|
||||
if (sizeof(size) == 4 && BitsPerPixel(depth) > 8) {
|
||||
if (size < width * height)
|
||||
return BadAlloc;
|
||||
/* thankfully, offset is unsigned */
|
||||
if (stuff->offset + size < size)
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
VERIFY_SHMSIZE(shmdesc, stuff->offset, size, client);
|
||||
|
||||
if(!(newPix = (PanoramiXRes *) xalloc(sizeof(PanoramiXRes))))
|
||||
|
@ -1080,14 +1082,6 @@ ProcShmCreatePixmap(client)
|
|||
}
|
||||
if (width > 32767 || height > 32767)
|
||||
return BadAlloc;
|
||||
size = PixmapBytePad(width, depth) * height;
|
||||
if (sizeof(size) == 4) {
|
||||
if (size < width * height)
|
||||
return BadAlloc;
|
||||
/* thankfully, offset is unsigned */
|
||||
if (stuff->offset + size < size)
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
if (stuff->depth != 1)
|
||||
{
|
||||
|
@ -1098,7 +1092,17 @@ ProcShmCreatePixmap(client)
|
|||
client->errorValue = stuff->depth;
|
||||
return BadValue;
|
||||
}
|
||||
|
||||
CreatePmap:
|
||||
size = PixmapBytePad(width, depth) * height;
|
||||
if (sizeof(size) == 4 && BitsPerPixel(depth) > 8) {
|
||||
if (size < width * height)
|
||||
return BadAlloc;
|
||||
/* thankfully, offset is unsigned */
|
||||
if (stuff->offset + size < size)
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
VERIFY_SHMSIZE(shmdesc, stuff->offset, size, client);
|
||||
pMap = (*shmFuncs[pDraw->pScreen->myNum]->CreatePixmap)(
|
||||
pDraw->pScreen, stuff->width,
|
||||
|
|
|
@ -344,7 +344,7 @@ getValuatorEvents(xEvent *events, DeviceIntPtr pDev, int first_valuator,
|
|||
for (i = first_valuator; i < final_valuator; i += 6, xv++, events++) {
|
||||
xv->type = DeviceValuator;
|
||||
xv->first_valuator = i;
|
||||
xv->num_valuators = num_valuators;
|
||||
xv->num_valuators = ((num_valuators - i) > 6) ? 6 : (num_valuators - i);
|
||||
xv->deviceid = pDev->id;
|
||||
switch (final_valuator - i) {
|
||||
case 6:
|
||||
|
|
|
@ -63,6 +63,9 @@ XkbSrvLedInfoPtr sli;
|
|||
|
||||
sli= XkbFindSrvLedInfo(dev,XkbDfltXIClass,XkbDfltXIId,0);
|
||||
|
||||
if (!sli)
|
||||
return update;
|
||||
|
||||
if (state_changes&(XkbModifierStateMask|XkbGroupStateMask))
|
||||
update|= sli->usesEffective;
|
||||
if (state_changes&(XkbModifierBaseMask|XkbGroupBaseMask))
|
||||
|
|
Loading…
Reference in New Issue
Block a user