From: Vsevolod Stakhov Date: Mon, 23 Apr 2018 16:40:30 +0000 (+0100) Subject: [CritFix] Fix ucl escape for bad symbols X-Git-Tag: 1.7.4~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38f05a24a5da2c3692fa41a28aad6bc767a08b92;p=rspamd.git [CritFix] Fix ucl escape for bad symbols Issue: #2194 --- diff --git a/contrib/libucl/ucl_emitter_utils.c b/contrib/libucl/ucl_emitter_utils.c index 11a6c4b3d..0831b3bf9 100644 --- a/contrib/libucl/ucl_emitter_utils.c +++ b/contrib/libucl/ucl_emitter_utils.c @@ -138,7 +138,7 @@ ucl_elt_string_write_json (const char *str, size_t size, break; default: /* Emit unicode unknown character */ - func->ucl_emitter_append_len ("\\uFFFD", 5, func->ud); + func->ucl_emitter_append_len ("\\uFFFD", 6, func->ud); break; } len = 0;