commit | 4391c65f105fc1efcd7ead9f12c552dc21dce4bf | [log] [tgz] |
---|---|---|
author | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | Mon Aug 19 15:14:48 2019 -0700 |
committer | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | Wed Aug 21 08:40:53 2019 -0700 |
tree | f6b783b860da9ced2583554c60726cc4ae01abf8 | |
parent | 9dfbc8dc03d2339c7deac0c1c44fe1968b402d4a [diff] |
pan/decode: Add static bounds checking utility Many structures in the command stream have a GPU address and size determined statically. We should check that the pointers we are passed are valid and the buffers they point to are big enough for the given size. If they're not, an MMU fault would be raised. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>