xserver/Xext
Keith Packard 53e347b22b Save major/minor opcodes in ClientRec for RecordAReply
The record extension needs the major and minor opcodes in the reply
hook, but the request buffer may have been freed by the time the hook
is invoked. Saving the request major and minor codes as the request is
executed avoids fetching from the defunct request buffer.

This patch also eliminates the public MinorOpcodeOfRequest function,
inlining it into Dispatch. Usages of that function have been replaced
with direct access to the new ClientRec field.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
(cherry picked from commit fb22a408c6)

Conflicts:

	include/extension.h
2011-12-21 09:55:58 -08:00
..
bigreq.c xserver: delete pervasively use of DISPATCH_PROC 2010-09-28 16:45:05 +03:00
dpms.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
dpmsproc.h DPMS: Remove unused DPMSGet() 2009-04-03 18:22:20 -04:00
dpmsstubs.c DPMS: Remove unused DPMSGet() 2009-04-03 18:22:20 -04:00
geext.c Xext: use EXT_MASK macro instead of manual & 0x7f 2011-04-07 12:45:55 +10:00
geext.h Xext: remove ev_fill from GEExtensions. 2009-03-20 15:17:54 +10:00
geint.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
Makefile.am xext: Remove XCALIBRATE extension 2011-03-01 10:56:17 +10:00
panoramiX.c Merge remote-tracking branch 'airlied/xinerama-cleanup' 2011-03-23 13:38:37 +09:00
panoramiX.h panoramiX: consolidate common id assignment code. 2011-03-10 11:00:48 +10:00
panoramiXh.h Centralize declaration of ConnectionInfo. 2008-08-20 13:14:34 -04:00
panoramiXprocs.c panoramiX: convert 1->panoramiXNumScreens loops to use macro (v2) 2011-03-10 11:01:51 +10:00
panoramiXsrv.h Merge remote-tracking branch 'airlied/xinerama-cleanup' 2011-03-23 13:38:37 +09:00
panoramiXSwap.c Merge branch 'master' into mpx 2008-01-03 17:04:54 +10:30
saver.c xext: don't free uninitialised pointer when malloc fails. (v2) 2011-12-09 12:34:41 -08:00
security.c Save major/minor opcodes in ClientRec for RecordAReply 2011-12-21 09:55:58 -08:00
securitysrv.h Xext: include security protocol header instead of client header 2009-09-20 19:57:01 +10:00
shape.c xserver: delete pervasively use of DISPATCH_PROC 2010-09-28 16:45:05 +03:00
shm.c Fix ShmPutImage for XYBitmap 2011-12-21 09:52:21 -08:00
shmint.h Update to xextproto 7.0.99.1. 2009-07-15 17:00:05 +10:00
sleepuntil.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
sleepuntil.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
sync.c X Sync Cleanups 2011-01-05 08:41:30 -08:00
syncsdk.h Create/Destroy/Trigger/Reset/Query Fence Sync objs 2010-12-06 19:15:38 -08:00
syncsrv.h Add XSyncAwaitFence() handler 2010-12-06 19:15:38 -08:00
xace.c xace: Invalid reference to out-of-scope data. 2010-08-10 16:04:16 -07:00
xace.h Correct outdated e-mail address in "Author" statements. 2009-09-02 17:56:52 -04:00
xacestr.h Correct outdated e-mail address in "Author" statements. 2009-09-02 17:56:52 -04:00
xcmisc.c xserver: delete pervasively use of DISPATCH_PROC 2010-09-28 16:45:05 +03:00
xf86bigfont.c Fix compilation of xf86bigfont.c 2011-01-25 14:41:02 +00:00
xf86bigfontsrv.h New header for XF86Bigfont server functions 2010-03-22 00:48:04 -05:00
xres.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
xselinux.h xselinux: Bump extension minor version. 2010-02-22 17:05:01 -05:00
xselinux_ext.c xselinux: Fix GetDrawableContext 2011-02-02 14:33:01 -08:00
xselinux_hooks.c Save major/minor opcodes in ClientRec for RecordAReply 2011-12-21 09:55:58 -08:00
xselinux_label.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
xselinuxint.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xtest.c input: free the EQ allocated memory on shutdown (#38634) 2011-07-01 08:46:28 +10:00
xvdisp.c xv: test correct number of requests. (v2) 2011-12-09 12:35:37 -08:00
xvdisp.h Fix swapped Xv dispatch under Xinerama. 2007-12-02 14:15:36 -05:00
xvdix.h xv: Use RESTYPE where appropriate 2011-03-08 13:19:40 -05:00
xvmain.c Xext: Silence warnings when building with clang 2011-04-25 10:45:34 -07:00
xvmc.c Xext: Fix buggy checks. 2011-06-16 00:43:41 +02:00
xvmcext.h Use libtool convenience libraries and better "symbol" table. 2008-12-07 02:22:19 -02:00