mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
mesa: fix buffer overrun in SavedObj texture obj array
Fixes:3be42f9ca1("mesa: rewrite glPushAttrib/glPopAttrib to get rid of malloc") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5621 Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13773> (cherry picked from commit9d9de15a02)
This commit is contained in:
parent
d2f9a0e45b
commit
ecbaa57321
2 changed files with 2 additions and 2 deletions
|
|
@ -3163,7 +3163,7 @@
|
|||
"description": "mesa: fix buffer overrun in SavedObj texture obj array",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "3be42f9ca19d593d374d309f47ebd80abb001a24"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5129,7 +5129,7 @@ struct gl_texture_attrib_node
|
|||
/* For saving per texture object state (wrap modes, filters, etc),
|
||||
* SavedObj[][].Target is unused, so the value is invalid.
|
||||
*/
|
||||
struct gl_texture_object SavedObj[MAX_TEXTURE_UNITS][NUM_TEXTURE_TARGETS];
|
||||
struct gl_texture_object SavedObj[MAX_COMBINED_TEXTURE_IMAGE_UNITS][NUM_TEXTURE_TARGETS];
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue