[MONGOCRYPT-22] libmongocrypt aborts on empty decrypted bson binary values Created: 26/Aug/19  Updated: 28/Oct/23  Resolved: 28/Aug/19

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

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

Issue Links:
Depends
Problem/Incident
is caused by CDRIVER-3340 Appending a bson_value_t containing a... Closed
Related
Epic Link: FLE Follow-up

 Description   

If a user encrypts a BSON binary value with an empty value (i.e. length 0), then libmongocrypt will abort trying to append it.

It calls bson_append_value which calls bson_append_binary which asserts that the binary value has a non-zero length.



 Comments   
Comment by Githook User [ 28/Aug/19 ]

Author:

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

Message: CDRIVER-3338 workaround CDRIVER-3340

Comment by Kevin Albertson [ 27/Aug/19 ]

This is due to a bug in libbson (CDRIVER-3340), though there is simple temporary workaround since it the bug fix in libbson will likely be in the libbson 1.16.0 release.

Generated at Thu Feb 08 09:07:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.