Skip to content

Commit

Permalink
glx: fix request length check for CreateGLXPbufferSGIX
Browse files Browse the repository at this point in the history
The request is followed by an attribute list.

Signed-off-by: Julien Cristau <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
  • Loading branch information
jcristau committed Feb 15, 2011
1 parent ea1ffd3 commit a883cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glx/glxcmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ int __glXDisp_CreateGLXPbufferSGIX(__GLXclientState *cl, GLbyte *pc)
ClientPtr client = cl->client;
xGLXCreateGLXPbufferSGIXReq *req = (xGLXCreateGLXPbufferSGIXReq *) pc;

REQUEST_SIZE_MATCH(xGLXCreateGLXPbufferSGIXReq);
REQUEST_AT_LEAST_SIZE(xGLXCreateGLXPbufferSGIXReq);

return DoCreatePbuffer(cl->client, req->screen, req->fbconfig,
req->width, req->height, req->pbuffer);
Expand Down
2 changes: 1 addition & 1 deletion glx/glxcmdsswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ int __glXDispSwap_CreateGLXPbufferSGIX(__GLXclientState *cl, GLbyte *pc)
xGLXCreateGLXPbufferSGIXReq *req = (xGLXCreateGLXPbufferSGIXReq *) pc;
__GLX_DECLARE_SWAP_VARIABLES;

REQUEST_SIZE_MATCH(xGLXCreateGLXPbufferSGIXReq);
REQUEST_AT_LEAST_SIZE(xGLXCreateGLXPbufferSGIXReq);

__GLX_SWAP_INT(&req->screen);
__GLX_SWAP_INT(&req->fbconfig);
Expand Down

0 comments on commit a883cf1

Please sign in to comment.