[SERVER-54307] Coverity analysis defect 117575: Unsigned compared against 0 Created: 04/Feb/21  Updated: 26/Feb/21  Resolved: 26/Feb/21

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: Kyle Suarez
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-54305 Coverity analysis defect 117572: Unsi... Closed
Operating System: ALL
Sprint: Query Execution 2021-03-08
Participants:

 Description   

Unsigned compared against 0

An unsigned value can never be negative, so this test will always evaluate the same way. An unsigned value can never be less than 0
/src/mongo/db/exec/sbe/expressions/expression.cpp:422: NO_EFFECT 117575 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "n >= 0UL".


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