[CDRIVER-3931] Check for a null document in bson_parser_parse Created: 16/Mar/21  Updated: 28/Oct/23  Resolved: 17/Mar/21

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.18.0, 1.18.0-alpha

Type: Bug Priority: Major - P3
Reporter: Benji Rewis (Inactive) Assignee: Benji Rewis (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The bson test util bson_parser_parse can run BSON_FOREACH on a NULL document causing an error in BSON_ASSERT. A check should be added to verify the document isn't NULL.



 Comments   
Comment by Githook User [ 17/Mar/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: CDRIVER-3931 Check for null document in bson parser parse (#760)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/505bfca4044138b37ad5b5b573c6ac25c2f10292

Comment by Benji Rewis (Inactive) [ 17/Mar/21 ]

https://github.com/mongodb/mongo-c-driver/pull/760

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