Robert Munteanu created FELIX-6835:
--------------------------------------
Summary: ommentRemovingReader incorrectly handles escaped quotes
and drops characters at buffer boundaries
Key: FELIX-6835
URL: https://issues.apache.org/jira/browse/FELIX-6835
Project: Felix
Issue Type: Bug
Affects Versions: cm.json-2.0.6
Reporter: Robert Munteanu
Assignee: Robert Munteanu
1. A JSON string ending with an even number of backslashes followed by a quote
is misidentified as an escaped quote
example:
{code}
{
"a": "\\\\",
"b": "value/*"
}
{code}
2. Character permanently dropped at a read-buffer boundary
When a lone / ends a read() call and the next read() call fills its buffer
exactly, one character is silently and permanently lost from the output stream.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)