]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix ucl escape for bad symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Apr 2018 16:40:30 +0000 (17:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Apr 2018 16:40:30 +0000 (17:40 +0100)
Issue: #2194

contrib/libucl/ucl_emitter_utils.c

index 11a6c4b3d7e63f84b2ed6c6096cdf73afe13268c..0831b3bf9859b58b5e157499cd57cba04e8b2195 100644 (file)
@@ -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;