pan/decode: Validate attribute/varying buffer pointer

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-08-20 16:02:38 -07:00
parent be5e30c46b
commit 62e6673908

View file

@ -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);