SDL: Fixed OOB access in audio_convertAccuracy test

From 2833f2e7b571ec947a1ca5975911d0e1dbc338fb Mon Sep 17 00:00:00 2001
From: Brick <[EMAIL REDACTED]>
Date: Sun, 3 Sep 2023 20:46:26 +0100
Subject: [PATCH] Fixed OOB access in audio_convertAccuracy test

---
 test/testautomation_audio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/testautomation_audio.c b/test/testautomation_audio.c
index 1ed4b7476d89..69b4369d2995 100644
--- a/test/testautomation_audio.c
+++ b/test/testautomation_audio.c
@@ -994,9 +994,9 @@ static int audio_convertAccuracy(void *arg)
     }
 
     /* Shuffle the data for good measure */
-    for (i = src_num - 1; i >= 0; --i) {
+    for (i = src_num - 1; i > 0; --i) {
         float f = src_data[i];
-        j = SDLTest_RandomIntegerInRange(0, src_num);
+        j = SDLTest_RandomIntegerInRange(0, i);
         src_data[i] = src_data[j];
         src_data[j] = f;
     }