[SERVER-37118] Coverity analysis defect 105000: Arguments in wrong order Created: 13/Sep/18  Updated: 29/Oct/23  Resolved: 25/Sep/18

Status: Closed
Project: Core Server
Component/s: Replication, Security
Affects Version/s: None
Fix Version/s: 3.6.9, 4.0.4, 4.1.4

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Spencer Jackson
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Gantt Dependency
has to be done after SERVER-20845 re-add replSetReconfig to auditing suite Closed
Related
is related to SERVER-20845 re-add replSetReconfig to auditing suite Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Security 2018-09-24, Security 2018-10-08
Participants:

 Description   

The arguments to a function call are provided in the wrong order.

Defect 105000 (STATIC_C)
Checker SWAPPED_ARGUMENTS (subcategory none)
File: /src/mongo/db/repl/replication_coordinator_impl.cpp
Function mongo::repl::ReplicationCoordinatorImpl::processReplSetReconfig(mongo::OperationContext *, const mongo::repl::ReplicationCoordinator::ReplSetReconfigArgs &, mongo::BSONObjBuilder *)



 Comments   
Comment by Githook User [ 12/Oct/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-37118: Fix invokation argument order

(cherry picked from commit fbeeccc651d7f88dea0ea36623470d3d46e615db)
Branch: v4.0
https://github.com/mongodb/mongo/commit/569eced0da31c251d6691ddcde3370104440cd6f

Comment by Githook User [ 12/Oct/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-37118: Fix invokation argument order

(cherry picked from commit e32cbaff9e5b424966af360a118d662dadb08537)
Branch: v4.0
https://github.com/10gen/mongo-enterprise-modules/commit/637ff4cb9fe61787a00804dae4939642a4d44b53

Comment by Githook User [ 29/Sep/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-37118: Fix invokation argument order

(cherry picked from commit fbeeccc651d7f88dea0ea36623470d3d46e615db)
Branch: v3.6
https://github.com/mongodb/mongo/commit/a442bad892190aee4d406c570207b2609102d63a

Comment by Githook User [ 29/Sep/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-37118: Fix invokation argument order

(cherry picked from commit e32cbaff9e5b424966af360a118d662dadb08537)
Branch: v3.6
https://github.com/10gen/mongo-enterprise-modules/commit/825bd565722a603598356429288e8393304abb2a

Comment by Githook User [ 25/Sep/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-37118: Fix invokation argument order
Branch: master
https://github.com/mongodb/mongo/commit/fbeeccc651d7f88dea0ea36623470d3d46e615db

Comment by Githook User [ 25/Sep/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-37118: Fix invokation argument order
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/e32cbaff9e5b424966af360a118d662dadb08537

Comment by Eric Milkie [ 13/Sep/18 ]

Requesting backports since the related ticket is also marked for backport.

Generated at Thu Feb 08 04:45:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.