[CDRIVER-2305] Disallow null characters in JSON strings Created: 27/Sep/17  Updated: 28/Oct/23  Resolved: 04/Oct/17

Status: Closed
Project: C Driver
Component/s: json, libbson
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident

 Description   

Null characters should be disallowed in JSON input and an error should be returned. Currently our JSON parser does not handle them correctly.

From the JSON spec

All Unicode characters may be placed within the
quotation marks, except for the characters that must be escaped:
quotation mark, reverse solidus, and the control characters (U+0000
through U+001F).



 Comments   
Comment by Githook User [ 29/Sep/17 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2305 disallow null char in JSON strings
Branch: master
https://github.com/mongodb/libbson/commit/fe24ed54a99a8d3c28fb0091a1c1f4ea3f9e3ab9

Generated at Wed Feb 07 21:14:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.