fix: buffer overflow in jar_mod.h memcopy

This commit is contained in:
Connor O'Connor
2025-08-06 23:13:05 -04:00
committed by GitHub
parent a6f29e4f19
commit 1c2ecfd6ab

View File

@@ -1130,7 +1130,7 @@ static bool jar_mod_load( jar_mod_context_t * modctx, void * mod_data, int mod_d
{ {
if( modctx ) if( modctx )
{ {
memcopy(&(modctx->song.title),modmemory,1084); memcopy(&(modctx->song), modmemory, 1084);
i = 0; i = 0;
modctx->number_of_channels = 0; modctx->number_of_channels = 0;
@@ -1593,4 +1593,4 @@ void jar_mod_seek_start(jar_mod_context_t * ctx)
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
#endif //end of header file #endif //end of header file