ethumb - check size read

fix CID 1402633
This commit is contained in:
Carsten Haitzler 2020-09-19 23:09:05 +01:00
parent 99636bdd5f
commit fa2f0b67b9
1 changed files with 5 additions and 0 deletions

View File

@ -119,6 +119,11 @@ _ec_pipe_str_read(struct _Ethumbd_Child *ec EINA_UNUSED, char **str)
*str = NULL;
return 0;
}
if ((size < 0) || (size >= PATH_MAX))
{
*str = NULL;
return 0;
}
if (!size)
{