[MONGOCRYPT-322] Calling close multiple times causes a crash Created: 02/Jul/21 Updated: 28/Oct/23 Resolved: 07/Jul/21 |
|
| Status: | Closed |
| Project: | Libmongocrypt |
| Component/s: | Java binding |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.2.1 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Ross Lawley | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The MongoCryptImpl#close method isn't guarded:
So each call to close() will try to destroy the mongocrypt_t object. |
| Comments |
| Comment by Githook User [ 06/Jul/21 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Ensure Java bindings handle multiple calls MongoCrypt#close (#179)
|
| Comment by Ross Lawley [ 02/Jul/21 ] |