[SERVER-44274] Coverity analysis defect 113947: Uninitialized scalar variable Created: 28/Oct/19 Updated: 29/Oct/23 Resolved: 28/Oct/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Billy Donahue |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Dev Tools 2019-11-04 |
| Participants: |
| Description |
|
Use of an uninitialized variable Defect 113947 (STATIC_C)
/src/mongo/stdx/thread.h, line: 90
|
| Comments |
| Comment by Githook User [ 28/Oct/19 ] |
|
Author: {'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue'}Message: |
| Comment by Billy Donahue [ 28/Oct/19 ] |
| Comment by Billy Donahue [ 28/Oct/19 ] |
|
Done. But I think I'll "fix" it anyway since it's easy to do. |
| Comment by Eric Milkie [ 28/Oct/19 ] |
|
You can mark it False Positive in the interface. |
| Comment by Billy Donahue [ 28/Oct/19 ] |
|
Well I’m sure this isn’t a defect. If the stack_t’s ss_flags field has a SS_DISABLE bit set, the other fields of the stack_t are ignored. This is spelled out in the POSIX spec for sigaltstack. What do we do with false positives? |