[SERVER-72966] Coverity analysis defect 134393: Operands don't affect result Created: 17/Jan/23  Updated: 29/Oct/23  Resolved: 01/Mar/23

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

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

Issue Links:
Duplicate
is duplicated by SERVER-72967 Coverity analysis defect 134392: Oper... Closed
is duplicated by SERVER-72968 Coverity analysis defect 134391: Oper... Closed
is duplicated by SERVER-72969 Coverity analysis defect 134389: Oper... Closed
is duplicated by SERVER-73516 Coverity analysis defect 134396: Pars... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2023-02-06, Security 2023-02-20, Security 2023-03-06
Participants:

 Description   

Operands don't affect result

The expression's value does not depend on the operands; often, this represents an inadvertent logic error. An operation with non-constant operands that computes a result with constant value
/src/third_party/libmongocrypt/dist/src/mongocrypt-marking.c:838: CONSTANT_EXPRESSION_RESULT 134393 "(uint64_t)placeholder->sparsity <= 18446744073709551615UL /* (uint64_t)18446744073709551615UL */" is always true regardless of the values of its operands. This occurs as the logical second operand of "&&".



 Comments   
Comment by Githook User [ 01/Mar/23 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-72966 Merge LIBMONGOCRYPT for coverity fixes
Branch: master
https://github.com/mongodb/mongo/commit/93864ae1dcbad7bfb5f15a97503111eaad8d2e03

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