EOF after newline in string mishandled (fix #951)
This commit is contained in:
1 parent
58f082d74f
commit
c4524da3e0
2 files changed
+13
-4
No files matched your search
+1
-3
@@ -435,10 +435,8 @@ jv jq_util_input_next_input(jq_util_input_state *state) {
|
||||
} else {
|
||||
if (jv_parser_remaining(state->parser) == 0) {
|
||||
is_last = jq_util_input_read_more(state);
|
||||
if (is_last && state->buf_valid_len == 0) {
|
||||
if (is_last && state->buf_valid_len == 0)
|
||||
value = jv_invalid();
|
||||
break;
|
||||
}
|
||||
jv_parser_set_buf(state->parser, state->buf, state->buf_valid_len, !is_last);
|
||||
}
|
||||
value = jv_parser_next(state->parser);
|
||||
|
||||
Reference in new issue
Block a user