diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-20 16:02:38 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 08:40:55 -0700 |
commit | 62e667390877a6ea28a1f0e9b0891a09061ffe2b (patch) | |
tree | acac2d665da76dadb48eb86a5dc5538aff3669a5 /src/panfrost/pandecode/decode.c | |
parent | be5e30c46be9c6cdfb0a0209f5db118bafcc4c85 (diff) |
pan/decode: Validate attribute/varying buffer pointer
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/pandecode/decode.c')
-rw-r--r-- | src/panfrost/pandecode/decode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 148be10fdc4..89537e170fe 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -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); |