Skip to content
Snippets Groups Projects
Commit e299f1ba authored by Nicolai Hähnle's avatar Nicolai Hähnle Committed by Emil Velikov
Browse files

radeonsi: fix an out-of-bounds read reported by ASAN


We read 4 values out of sample_locs_8x, so make sure the array is
big enough.

Fixes: ac76aeef ("radeonsi: switch back to standard DX sample positions")
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
(cherry picked from commit 46a59ce0)
parent 2e393b48
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,10 @@ static const uint64_t centroid_priority_4x = 0x3210321032103210ull;
static const uint32_t sample_locs_8x[] = {
FILL_SREG(-3,-5, 5, 1, -1, 3, 7,-7),
FILL_SREG(-7,-1, 3, 7, -5, 5, 1,-3),
/* The following are unused by hardware, but we emit them to IBs
* instead of multiple SET_CONTEXT_REG packets. */
0,
0,
};
static const uint64_t centroid_priority_8x = 0x3546012735460127ull;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment