[SERVER-65206] Coverity analysis defect 122018: Missing break in switch Created: 03/Apr/22  Updated: 29/Oct/23  Resolved: 07/Apr/22

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

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

Issue Links:
Problem/Incident
is caused by SERVER-63574 Index SBEPlan: Support all types of v... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2022-04-18
Participants:

 Description   

Missing break in switch

Execution falls through to the next case statement or default; this might indicate a common typo. Missing break statement between cases in switch statement
/src/mongo/db/exec/sbe/vm/vm.cpp:1790: MISSING_BREAK 122018 The case for value "(mongo::sbe::value::TypeTags)27" is not terminated by a "break" statement.
/src/mongo/db/exec/sbe/vm/vm.cpp:1795: MISSING_BREAK 122018 The above case falls through to this one.



 Comments   
Comment by Githook User [ 07/Apr/22 ]

Author:

{'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}

Message: SERVER-65206 Fix switch case fall through
Branch: master
https://github.com/mongodb/mongo/commit/5345dcfaa6ec7b64d81ebdffbec7b1dd38cc92b2

Comment by Kyle Suarez [ 05/Apr/22 ]

nikita.lapkov, this was introduced by SERVER-63574 – could you please add the missing break statement?

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