[SERVER-68882] Coverity analysis defect 127654: Using a moved object Created: 17/Aug/22  Updated: 27/Oct/23  Resolved: 08/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Misha Tyulenev
Resolution: Gone away Votes: 0
Labels: coverity, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: QO 2022-10-03, QE 2022-10-17, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28, QE 2022-12-12
Participants:

 Description   

Using a moved object

Using a moved object may lead to an unexpected/undefined behavior. An object is used after it's moved.
/src/mongo/db/query/ce/scalar_histogram.cpp:61: USE_AFTER_MOVE 127654 "bounds" is moved (indicated by "std::move(bounds)").
/src/mongo/db/query/ce/scalar_histogram.cpp:62: USE_AFTER_MOVE 127654 "bounds" is used after it has been already moved.


Generated at Thu Feb 08 06:11:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.