summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2023-02-17 19:03:52 -0500
committerGitHub <noreply@github.com>2023-02-17 16:03:52 -0800
commita8da735ca4e0ed49796dda164c39e21aea4a7bc6 (patch)
treee4b3f5dc18a11c83bd2253f6e4fe9bd1bc09419e /tests
parent92ccc8f17881d010f399b63aee80ba20bdc7095c (diff)
Allocate N+1 arrays instead of N to avoid out-of-bounds access when unzipping loops (#2663)
Diffstat (limited to 'tests')
-rw-r--r--tests/autodiff/reverse-loop.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/autodiff/reverse-loop.slang b/tests/autodiff/reverse-loop.slang
index f6e951eab..828a06185 100644
--- a/tests/autodiff/reverse-loop.slang
+++ b/tests/autodiff/reverse-loop.slang
@@ -13,7 +13,7 @@ float test_simple_loop(float y)
{
float t = y;
- [MaxIters(5)]
+ [MaxIters(3)]
for (int i = 0; i < 3; i++)
{
t = t * t;