Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366949

Summary: Control Characters in Protocol-message can crash client
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2011-12-16 10:13:19 EST
The JSON-Parser on the client will crash if the Protocol-Message contains certain control characters (like Escape/27/""). Tested on firefox 8 with native JSON parser.
Comment 1 Ivan Furnadjiev CLA 2012-01-02 05:21:46 EST
The range of the controls characters defined in JSON RFC 4627 (http://www.ietf.org/rfc/rfc4627) is 0x0000 - 0x001f. Fixed by escaping these characters in JsonValue#escapeString.