[CDRIVER-2336] Leak in _mongoc_cyrus_set_mechanism Created: 31/Oct/17 Updated: 28/Oct/23 Resolved: 20/Nov/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Reading the code, it appears that _mongoc_cyrus_set_mechanism constructs a string of supported auth mechanisms and then calls:
That's passing 0 as the "free_segment" argument, so the character buffer is not freed. |
| Comments |
| Comment by Githook User [ 20/Nov/17 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}Message: |