mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 15:17:29 +00:00
Avoid copying delimiters in JSONParser::getToken
This commit is contained in:
parent
bb89a60320
commit
fcc123a62a
@ -871,21 +871,27 @@ JSONParser::getToken()
|
||||
action = ignore;
|
||||
} else if (*p == ',') {
|
||||
lex_state = ls_comma;
|
||||
action = ignore;
|
||||
ready = true;
|
||||
} else if (*p == ':') {
|
||||
lex_state = ls_colon;
|
||||
action = ignore;
|
||||
ready = true;
|
||||
} else if (*p == '{') {
|
||||
lex_state = ls_begin_dict;
|
||||
action = ignore;
|
||||
ready = true;
|
||||
} else if (*p == '}') {
|
||||
lex_state = ls_end_dict;
|
||||
action = ignore;
|
||||
ready = true;
|
||||
} else if (*p == '[') {
|
||||
lex_state = ls_begin_array;
|
||||
action = ignore;
|
||||
ready = true;
|
||||
} else if (*p == ']') {
|
||||
lex_state = ls_end_array;
|
||||
action = ignore;
|
||||
ready = true;
|
||||
} else if ((*p >= 'a') && (*p <= 'z')) {
|
||||
lex_state = ls_alpha;
|
||||
|
Loading…
Reference in New Issue
Block a user