[SERVER-23895] Coverity analysis defect 98855: Logically dead code Created: 25/Apr/16  Updated: 16/May/16  Resolved: 27/Apr/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.3.6

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Integrate+Tuning 14 (05/13/16)
Participants:

 Description   

Code can never be reached because of a logical contradiction

Defect 98855 (STATIC_C)
Checker DEADCODE (subcategory none)
File: /src/mongo/bson/bson_validate.cpp
Function mongo::<unnamed>::validateBSONIterative(mongo::<unnamed>::Buffer *)
/src/mongo/bson/bson_validate.cpp, line: 379
The switch value "state" cannot be "mongo::<unnamed>::ValidationState::Done".

                case ValidationState::Done:

/src/mongo/bson/bson_validate.cpp, line: 379
Execution cannot reach this statement: "case mongo::<unnamed>::Vali...".

                case ValidationState::Done:



 Comments   
Comment by Githook User [ 27/Apr/16 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-23895 Coverity analysis defect 98855: Logically dead code
Branch: master
https://github.com/mongodb/mongo/commit/7ef3a875728a4038e831bebfbbceb85d2e64095a

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