[JAVA-2362] Should throw an exception if a one byte BSON string is not properly null-terminated Created: 14/Oct/16  Updated: 19/Oct/16  Resolved: 17/Oct/16

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 3.5.0

Type: Bug Priority: Trivial - P5
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently the driver ignores the value of the byte rather than checking that it's 0. This change will detect the corrupt BSON and throw an exception instead.



 Comments   
Comment by Githook User [ 17/Oct/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2362: Throw exception if a one-byte BSON string is not properly null-terminated
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/9a260627dcea310a4c25e57acf5a56f56fd99af3

Generated at Thu Feb 08 08:57:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.