termptyesc: always check return of _csi_truecolor_arg_get()

CID1398478
CID1398479
CID1398480
This commit is contained in:
Boris Faure 2018-12-28 19:04:43 +01:00
parent 49de9aea64
commit 6f1e3ea077
1 changed files with 9 additions and 3 deletions

View File

@ -703,7 +703,9 @@ _handle_esc_csi_truecolor_rgb(Termpty *ty, Eina_Unicode **ptr)
/* Skip other parameters */
while ((*ptr) && (**ptr != ';'))
{
_csi_truecolor_arg_get(ty, ptr);
int arg = _csi_truecolor_arg_get(ty, ptr);
if (arg == -CSI_ARG_ERROR)
break;
}
}
if ((*ptr) && (**ptr == ';'))
@ -756,7 +758,9 @@ _handle_esc_csi_truecolor_cmy(Termpty *ty, Eina_Unicode **ptr)
/* Skip other parameters */
while ((*ptr) && (**ptr != ';'))
{
_csi_truecolor_arg_get(ty, ptr);
int arg = _csi_truecolor_arg_get(ty, ptr);
if (arg == -CSI_ARG_ERROR)
break;
}
}
if ((*ptr) && (**ptr == ';'))
@ -816,7 +820,9 @@ _handle_esc_csi_truecolor_cmyk(Termpty *ty, Eina_Unicode **ptr)
/* Skip other parameters */
while ((*ptr) && (**ptr != ';'))
{
_csi_truecolor_arg_get(ty, ptr);
int arg = _csi_truecolor_arg_get(ty, ptr);
if (arg == -CSI_ARG_ERROR)
break;
}
}
if ((*ptr) && (**ptr == ';'))