aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-05-15 23:54:25 +0200
committerBoris Faure <billiob@gmail.com>2017-05-15 23:54:25 +0200
commit17e5e1be550179cd23d177315b00254ca26f1582 (patch)
tree390e15eaa167be588c1ae95544039d5bae428908 /src/bin/termptyesc.c
parenttermptyesc: restrict CSI values to avoid denial of service (diff)
downloadterminology-17e5e1be550179cd23d177315b00254ca26f1582.tar.gz
termpyesc: only compute logging content if it's going to be printed
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index c27f4fa..59e062a 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1172,6 +1172,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
cc++;
return cc - c;
unhandled:
+ if (eina_log_domain_level_check(_termpty_log_dom, EINA_LOG_LEVEL_WARN))
{
Eina_Strbuf *bf = eina_strbuf_new();