mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-02 12:46:30 +00: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>
This commit is contained in:
parent
27903abbb6
commit
9d9de15a02
@ -5158,7 +5158,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…
Reference in New Issue
Block a user