From: Nicolas Williams Date: Wed, 24 Dec 2014 08:24:53 +0000 (-0600) Subject: Fix bug caused by 8ca07a0 X-Git-Tag: jq-1.5rc1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cdcff1c01ff4681f8d73ec4ba9689a702c4c17a;p=jq Fix bug caused by 8ca07a0 --- diff --git a/jv_parse.c b/jv_parse.c index 4497c42..0a06dc1 100644 --- a/jv_parse.c +++ b/jv_parse.c @@ -257,7 +257,7 @@ static pfunc found_string(struct jv_parser* p) { return "Invalid escape"; } } else { - if (c < 0x001f) + if (c > 0 && c < 0x001f) return "Invalid string: control characters from U+0000 through U+001F must be escaped"; *out++ = c; }