SDL_mixer: music_wav.c: Fixed buffer out of range at "fetch flaot64" (c9534)

From c95342239067034647f3b165dedde465996cc18d Mon Sep 17 00:00:00 2001
From: Wohlstand <[EMAIL REDACTED]>
Date: Sun, 27 Aug 2023 23:59:33 +0300
Subject: [PATCH] music_wav.c: Fixed buffer out of range at "fetch flaot64"

Caught by Address Sanitizer

https://github.com/WohlSoft/SDL-Mixer-X/commit/4388769b30518ab43674805f84475d9b74f2773a
---
 src/codecs/music_wav.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/codecs/music_wav.c b/src/codecs/music_wav.c
index 8f6f03a5..35c49966 100644
--- a/src/codecs/music_wav.c
+++ b/src/codecs/music_wav.c
@@ -344,7 +344,7 @@ static int fetch_float64be(void *context, int length)
     if (length % music->samplesize != 0) {
         length -= length % music->samplesize;
     }
-    for (i = 0, o = 0; i <= length; i += 8, o += 4) {
+    for (i = 0, o = 0; i < length; i += 8, o += 4) {
         union
         {
             float f;
@@ -367,7 +367,7 @@ static int fetch_float64le(void *context, int length)
     if (length % music->samplesize != 0) {
         length -= length % music->samplesize;
     }
-    for (i = 0, o = 0; i <= length; i += 8, o += 4) {
+    for (i = 0, o = 0; i < length; i += 8, o += 4) {
         union
         {
             float f;