billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=6f1e3ea0778985077b5a363e384a2b837d9c24bd
commit 6f1e3ea0778985077b5a363e384a2b837d9c24bd Author: Boris Faure <[email protected]> Date: Fri Dec 28 19:04:43 2018 +0100 termptyesc: always check return of _csi_truecolor_arg_get() CID1398478 CID1398479 CID1398480 --- src/bin/termptyesc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index c00a3e8..7f9efeb 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -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 == ';')) --
