Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
glx: Length-checking for non-generated vendor private requests [CVE-2…
…014-8098 6/8]

Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Michal Srb <msrb@suse.com>
Reviewed-by: Andy Ritger <aritger@nvidia.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
  • Loading branch information
nwnk authored and alanc committed Dec 9, 2014
1 parent afe1770 commit 44ba149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glx/indirect_program.c
Expand Up @@ -56,6 +56,8 @@ DoGetProgramString(struct __GLXclientStateRec *cl, GLbyte * pc,
__GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
ClientPtr client = cl->client;

REQUEST_FIXED_SIZE(xGLXVendorPrivateWithReplyReq, 8);

pc += __GLX_VENDPRIV_HDR_SIZE;
if (cx != NULL) {
GLenum target;
Expand Down
2 changes: 2 additions & 0 deletions glx/swap_interval.c
Expand Up @@ -46,6 +46,8 @@ DoSwapInterval(__GLXclientState * cl, GLbyte * pc, int do_swap)
__GLXcontext *cx;
GLint interval;

REQUEST_FIXED_SIZE(xGLXVendorPrivateReq, 4);

cx = __glXLookupContextByTag(cl, tag);

if ((cx == NULL) || (cx->pGlxScreen == NULL)) {
Expand Down

0 comments on commit 44ba149

Please sign in to comment.