[CXX-1526] Unicode charater "\u0000" is not handled properly. Created: 13/Mar/18  Updated: 13/Mar/18  Resolved: 13/Mar/18

Status: Closed
Project: C++ Driver
Component/s: BSON
Affects Version/s: legacy-1.1.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: saurabh jangir Assignee: Backlog - CXX Driver Team
Resolution: Won't Fix Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Unicode charater "\u0000" which is valid in JSON is not handled properly in BSON library.
It results in user assert.



 Comments   
Comment by A. Jesse Jiryu Davis [ 13/Mar/18 ]

Oh. I apologize, that version of the C++ driver is not supported any more. We have replaced it with the C++11 driver, which is now actively maintained:

http://mongodb.github.io/mongo-cxx-driver/

The modern C++ driver uses libbson and libmongoc internally; the unicode NIL character issue is already fixed there.

Comment by saurabh jangir [ 13/Mar/18 ]

I am using https://github.com/mongodb/mongo-cxx-driver/archive/legacy-1.1.2.tar.gz .
Don't know what version of bson is used in this.

Comment by A. Jesse Jiryu Davis [ 13/Mar/18 ]

What version of libbson?

Generated at Wed Feb 07 22:02:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.