[SERVER-64474] Coverity analysis defect 121890: Dereference null return value Created: 14/Mar/22 Updated: 29/Oct/23 Resolved: 15/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Coverity Collector User | Assignee: | Rui Liu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | QE 2022-03-21 | ||||||||
| Participants: | |||||||||
| Description |
|
Dereference null return value If the function actually returns a null value, a null pointer dereference will occur. Return value of function which returns null is dereferenced without checking |
| Comments |
| Comment by Githook User [ 15/Mar/22 ] |
|
Author: {'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}Message: |
| Comment by Githook User [ 14/Mar/22 ] |
|
Author: {'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}Message: |
| Comment by Rui Liu [ 14/Mar/22 ] |
|
kyle.suarez Looks like we should add an assertion there (index should always be there since we picked it for the index join), I can take the ticket. |
| Comment by Kyle Suarez [ 14/Mar/22 ] |
|
FYI rui.liu, looks like it's complaining since findIndexByName() could technically return null. |