[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: |
|
||||||||||||||||
| 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:
|
| Comment by Kevin Albertson [ 27/Aug/19 ] |
|
This is due to a bug in libbson ( |