From 8d04479d20e3475cb950853981e925bd84385955 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 2 Dec 2024 15:45:34 +0000 Subject: [PATCH] Add additional check on index buffer values being out of bounds --- util/test/tests/Iter_Test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/test/tests/Iter_Test.py b/util/test/tests/Iter_Test.py index 92b4286a7..8cf02fdbc 100644 --- a/util/test/tests/Iter_Test.py +++ b/util/test/tests/Iter_Test.py @@ -95,6 +95,10 @@ class Iter_Test(rdtest.TestCase): idx = indices[0] + if idx is None: + rdtest.log.print("Index buffer out of bounds for idx 0, skipping") + return + striprestart_index = pipe.GetRestartIndex() & ((1 << (ib.byteStride*8)) - 1) if pipe.IsRestartEnabled() and idx == striprestart_index: