aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-08-17 23:13:10 +0200
committerBoris Faure <billiob@gmail.com>2015-08-17 23:18:49 +0200
commitb80bedc7c21ecffe99d8d142930db696eebdd6a5 (patch)
tree799c41137467fb214e562ebaf8f6440663c02ca6 /src/bin/termptyesc.c
parentadd powerlines to word separators (diff)
downloadterminology-b80bedc7c21ecffe99d8d142930db696eebdd6a5.tar.gz
do not report unsanitized input. See CVE-2003-0063
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 19b7a24..55856cf 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -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
{