[SERVER-68239] Coverity analysis defect 122987: Using a moved object Created: 22/Jul/22  Updated: 29/Oct/23  Resolved: 08/Aug/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Anton Korshunov
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: QO 2022-08-22
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/matcher/expression_parser.cpp:537: USE_AFTER_MOVE 122987 "elem" is moved (indicated by "std::move(elem)").
/src/mongo/db/matcher/expression_parser.cpp:537: USE_AFTER_MOVE 122987 "elem" is used after it has been already moved.


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