[SERVER-69779] Coverity analysis defect 127653: Using a moved object Created: 16/Sep/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, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-09-16 at 10.19.20 AM.png    
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:77: USE_AFTER_MOVE 127653 "buckets" is moved (indicated by "std::move(buckets)").
/src/mongo/db/query/ce/scalar_histogram.cpp:78: USE_AFTER_MOVE 127653 "buckets" is used after it has been already moved.


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