mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
check glLoadProgramNV len < 0 (bug 6679)
This commit is contained in:
parent
45e05dccd9
commit
8a97946e0a
1 changed files with 7 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.1
|
||||
* Version: 6.5.1
|
||||
*
|
||||
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
|
|
@ -515,6 +515,11 @@ _mesa_LoadProgramNV(GLenum target, GLuint id, GLsizei len,
|
|||
return;
|
||||
}
|
||||
|
||||
if (len < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glLoadProgramNV(len)");
|
||||
return;
|
||||
}
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_PROGRAM);
|
||||
|
||||
prog = (struct program *) _mesa_HashLookup(ctx->Shared->Programs, id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue