From: Stefan Reinauer Date: Wed, 17 Jun 2026 20:57:46 +0000 (-0700) Subject: prowizard: fix GnuPlayer sample buffer size X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=2435384b31f3eaaa7f7d0671a21de1a1243057ba;p=francis%2Fwinuae.git prowizard: fix GnuPlayer sample buffer size 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. --- diff --git a/prowizard/rippers/GnuPlayer.c b/prowizard/rippers/GnuPlayer.c index 98cac488..ba631e8a 100644 --- a/prowizard/rippers/GnuPlayer.c +++ b/prowizard/rippers/GnuPlayer.c @@ -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