]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
prowizard: fix GnuPlayer sample buffer size
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 17 Jun 2026 20:57:46 +0000 (13:57 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 17 Jun 2026 22:26:51 +0000 (15:26 -0700)
GnuPlayer clears a 64 KiB scratch buffer before expanding sample data,
but allocated only 65436 bytes for it. Allocate the full 65536 bytes so
the clear and later sample writes stay inside the buffer.

prowizard/rippers/GnuPlayer.c

index 98cac488f89a7ac8bfb7c4c73dff02e2748cd509..ba631e8ad3ec64965288c3bbfeb0580845b9db4b 100644 (file)
@@ -290,7 +290,7 @@ void Depack_GnuPlayer ( void )
 
   /* sample stuff */
   free ( Whatever );
-  Whatever = (uint8_t *) malloc (65436);
+  Whatever = (uint8_t *) malloc (65536);
   /*printf ( "\nNbrSmp : %ld\n",NbrSmp);*/
   l=0;
   for ( i=0 ; i<NbrSmp ; i++ )