mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
nouveau/mme: fix OOB access inside while_ine builder test
Signed-off-by: Karol Herbst <git@karolherbst.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24544>
This commit is contained in:
parent
8483a59dde
commit
1bee6a35ec
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ TEST_F(mme_builder_test, while_ine)
|
|||
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(cases); i++) {
|
||||
const uint32_t inc = cases[i];
|
||||
const uint32_t count = cases[ARRAY_SIZE(cases) - i];
|
||||
const uint32_t count = cases[ARRAY_SIZE(cases) - i - 1];
|
||||
const uint32_t bound = inc * count;
|
||||
|
||||
std::vector<uint32_t> params;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue