mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
Update filestream_getline to prevent heap corruption
This commit is contained in:
parent
841593f082
commit
60a45db69e
@ -478,6 +478,7 @@ char *filestream_getline(RFILE *stream)
|
||||
|
||||
if (!newline_tmp)
|
||||
{
|
||||
if (newline)
|
||||
free(newline);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user