[CXX-2140] Coverity analysis defect 105007: Uninitialized scalar field Created: 07/Dec/20 Updated: 27/Oct/23 Resolved: 21/Jul/23 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | size-small | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CXX-2632 |
| Quarter: | FY24Q2 |
| Description |
|
Uninitialized scalar field The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor |
| Comments |
| Comment by Kevin Albertson [ 21/Jul/23 ] | ||||||
|
scoped_bson_t conditionally initializes the _bson_t field. scoped_bson_t tracks if _bson_t is initialized with the _is_initialized field. The flagged constructor documents _bson_t is conditionally initialized:
Closing as "Works as Designed" given this appears to be expected behavior. | ||||||
| Comment by Coverity Collector User [ 07/Dec/20 ] | ||||||
|
A new defect has been detected and assigned to kevin.albertson in Coverity Connect. |