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,7 +478,8 @@ char *filestream_getline(RFILE *stream)
|
|||||||
|
|
||||||
if (!newline_tmp)
|
if (!newline_tmp)
|
||||||
{
|
{
|
||||||
free(newline);
|
if (newline)
|
||||||
|
free(newline);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user