[MONGOCRYPT-560] _fle2_insert_encryptionInformation raises Valgrind errors on bson_t Created: 11/Mar/23 Updated: 27/Apr/23 Resolved: 27/Apr/23 |
|
| Status: | Closed |
| Project: | Libmongocrypt |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.0 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Zachary Espiritu | Assignee: | Kyle Kloberdanz |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Binding Changes: | Not Needed |
| Description |
|
In _fle2_insert_encryptionInformation in mongocrypt-ctx-encrypt.c, a Valgrind memory leak can occur when the libbson BSON_MEMCHECK compile flag is set because:
|
| Comments |
| Comment by Githook User [ 27/Apr/23 ] |
|
Author: {'name': 'Kyle Kloberdanz', 'email': 'kyle.kloberdanz@mongodb.com', 'username': 'kkloberdanz'}Message: Improve bson_t initialization behavior (#629)
This addresses the issues brought up in the above tickets. We will not be removing calls to `BSON_INITIALIZER`, but we are addressing the other issues uncovered in these tickets. Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com> |