[SERVER-71606] Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT Created: 24/Nov/22 Updated: 29/Oct/23 Resolved: 06/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Varun Ravichandran | Assignee: | Militsa Sotirova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Security 2022-12-12 | ||||||||
| Participants: | |||||||||
| Description |
|
When LDAP_OPT_TIMELIMIT is set, OpenLDAP casts the value provided to a const int* (see here). Currently, we pass in the address to timeout, which is of type timeval. We should pass the correct type here to avoid unexpected behavior due to casting. |
| Comments |
| Comment by Githook User [ 06/Dec/22 ] |
|
Author: {'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}Message: |