[ 
https://issues.apache.org/jira/browse/FELIX-6835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler updated FELIX-6835:
------------------------------------
    Fix Version/s: cm.json-2.0.8

> CommentRemovingReader 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
>            Priority: Major
>             Fix For: cm.json-2.0.8
>
>
> 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)

Reply via email to