[SERVER-50196] Coverity analysis defect 116138: Uninitialized pointer field Created: 08/Aug/20 Updated: 29/Oct/23 Resolved: 19/Aug/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Bernard Gorman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | coverity, qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Query 2020-08-24 |
| Participants: |
| Description |
|
Uninitialized pointer field The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor |
| Comments |
| Comment by Githook User [ 19/Aug/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: |
| Comment by Bernard Gorman [ 15/Aug/20 ] |
|
Yep, looks like it's pointlessly shadowing PlanStage::_opCtx. I'll get rid of it. |
| Comment by David Storch [ 14/Aug/20 ] |
|
It looks to me like the MultiIteratorStage::_opCtx member variable should simply be deleted. |