summaryrefslogtreecommitdiff
path: root/src
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
parenta33a937ab76913845fd43b7b85c63486c9d9cb39 (diff)
do not report unsanitized input. See CVE-2003-0063
Diffstat (limited to 'src')
-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)
1303 goto err; 1303 goto err;
1304 if (*p == '?') 1304 if (*p == '?')
1305 { 1305 {
1306 TERMPTY_WRITE_STR("\033]0;"); 1306 /* returns empty string. See CVE-2003-0063 */
1307 if (ty->prop.title) 1307 TERMPTY_WRITE_STR("\033]0;Terminology\007");
1308 {
1309 TERMPTY_WRITE_STR(ty->prop.title);
1310 }
1311 TERMPTY_WRITE_STR("\007");
1312 } 1308 }
1313 else 1309 else
1314 { 1310 {
@@ -1336,12 +1332,8 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
1336 goto err; 1332 goto err;
1337 if (*p == '?') 1333 if (*p == '?')
1338 { 1334 {
1339 TERMPTY_WRITE_STR("\033]0;"); 1335 /* returns empty string. See CVE-2003-0063 */
1340 if (ty->prop.icon) 1336 TERMPTY_WRITE_STR("\033]1;Terminology\007");
1341 {
1342 TERMPTY_WRITE_STR(ty->prop.icon);
1343 }
1344 TERMPTY_WRITE_STR("\007");
1345 } 1337 }
1346 else 1338 else
1347 { 1339 {
@@ -1365,12 +1357,8 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
1365 goto err; 1357 goto err;
1366 if (*p == '?') 1358 if (*p == '?')
1367 { 1359 {
1368 TERMPTY_WRITE_STR("\033]0;"); 1360 /* returns empty string. See CVE-2003-0063 */
1369 if (ty->prop.title) 1361 TERMPTY_WRITE_STR("\033]2;Terminology\007");
1370 {
1371 TERMPTY_WRITE_STR(ty->prop.title);
1372 }
1373 TERMPTY_WRITE_STR("\007");
1374 } 1362 }
1375 else 1363 else
1376 { 1364 {