diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2013-04-01 12:51:59 +1300 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2013-04-06 18:30:08 +1300 |
commit | c4629ad3f9440ec7ad3d9f4881d0aba41a93f2f5 (patch) | |
tree | b232558c20a93b206a60ce7f3adf244b6333687b /src/mesa/main/dlist.c | |
parent | 302f53dc20593e72848f685643a34ea83d98bb65 (diff) |
mesa: don't memcmp() off the end of a cache key.
Reported-by: `per` in #intel-gfx
The size of the cache key varies, so store the actual size as well as
the key blob itself, rather than just assuming it's the same as the size
passed in.
NOTE: This is a candidate for stable branches.
V2: Don't leave silly holes in structure; use unsigned instead of GLuint.
V3: Fix missing case for `last` match.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/main/dlist.c')
0 files changed, 0 insertions, 0 deletions