termptyesc: no logging when fuzzing

This commit is contained in:
Boris Faure 2017-05-17 23:33:06 +02:00
parent 387cafa463
commit 0517be32f4
1 changed files with 2 additions and 0 deletions

View File

@ -1171,6 +1171,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
cc++; cc++;
return cc - c; return cc - c;
unhandled: unhandled:
#ifndef ENABLE_FUZZING
if (eina_log_domain_level_check(_termpty_log_dom, EINA_LOG_LEVEL_WARN)) if (eina_log_domain_level_check(_termpty_log_dom, EINA_LOG_LEVEL_WARN))
{ {
Eina_Strbuf *bf = eina_strbuf_new(); Eina_Strbuf *bf = eina_strbuf_new();
@ -1186,6 +1187,7 @@ unhandled:
WRN("unhandled CSI '%s': %s", _safechar(*cc), eina_strbuf_string_get(bf)); WRN("unhandled CSI '%s': %s", _safechar(*cc), eina_strbuf_string_get(bf));
eina_strbuf_free(bf); eina_strbuf_free(bf);
} }
#endif
cc++; cc++;
return cc - c; return cc - c;
} }