do not report unsanitized input. See CVE-2003-0063

This commit is contained in:
Boris Faure 2015-08-17 23:13:10 +02:00
parent a33a937ab7
commit b80bedc7c2
1 changed files with 6 additions and 18 deletions

View File

@ -1303,12 +1303,8 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
goto err;
if (*p == '?')
{
TERMPTY_WRITE_STR("\033]0;");
if (ty->prop.title)
{
TERMPTY_WRITE_STR(ty->prop.title);
}
TERMPTY_WRITE_STR("\007");
/* returns empty string. See CVE-2003-0063 */
TERMPTY_WRITE_STR("\033]0;Terminology\007");
}
else
{
@ -1336,12 +1332,8 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
goto err;
if (*p == '?')
{
TERMPTY_WRITE_STR("\033]0;");
if (ty->prop.icon)
{
TERMPTY_WRITE_STR(ty->prop.icon);
}
TERMPTY_WRITE_STR("\007");
/* returns empty string. See CVE-2003-0063 */
TERMPTY_WRITE_STR("\033]1;Terminology\007");
}
else
{
@ -1365,12 +1357,8 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
goto err;
if (*p == '?')
{
TERMPTY_WRITE_STR("\033]0;");
if (ty->prop.title)
{
TERMPTY_WRITE_STR(ty->prop.title);
}
TERMPTY_WRITE_STR("\007");
/* returns empty string. See CVE-2003-0063 */
TERMPTY_WRITE_STR("\033]2;Terminology\007");
}
else
{