mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 00:50:07 +01:00
pan/decode: Validate attribute/varying buffer pointer
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
be5e30c46b
commit
62e6673908
1 changed files with 3 additions and 0 deletions
|
|
@ -1246,6 +1246,9 @@ pandecode_attributes(const struct pandecode_mapped_memory *mem,
|
|||
pandecode_prop("elements = (%s) | %s", a, pandecode_attr_mode(mode));
|
||||
free(a);
|
||||
|
||||
/* Check the pointer */
|
||||
pandecode_validate_buffer(raw_elements, attr[i].size);
|
||||
|
||||
pandecode_prop("shift = %d", attr[i].shift);
|
||||
pandecode_prop("extra_flags = %d", attr[i].extra_flags);
|
||||
pandecode_prop("stride = 0x%" PRIx32, attr[i].stride);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue