mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 15:40:35 +00:00
fix heap overflow with playlists
This commit is contained in:
parent
01b2b9c3a6
commit
0c634382f9
@ -119,10 +119,11 @@ void playlist_delete_index(playlist_t *playlist,
|
||||
if (!playlist)
|
||||
return;
|
||||
|
||||
playlist->size = playlist->size - 1;
|
||||
|
||||
memmove(playlist->entries + idx, playlist->entries + idx + 1,
|
||||
(playlist->size - idx) * sizeof(struct playlist_entry));
|
||||
|
||||
playlist->size = playlist->size - 1;
|
||||
playlist->modified = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user