[CXX-2144] Coverity analysis defect 114130: Uncaught exception Created: 14/Dec/20  Updated: 27/Oct/23  Resolved: 21/Jul/23

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX-2632
Quarter: FY24Q2

 Description   

Uncaught exception

If the exception is ever thrown, the program will crash. A C++ exception is thrown but never caught
/src/bsoncxx/types/bson_value/view.cpp:78: UNCAUGHT_EXCEPT 114130 An exception of type "bsoncxx::v_noabi::exception" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().



 Comments   
Comment by Coverity Collector User [ 14/Dec/20 ]

A new defect has been detected and assigned to kevin.albertson in Coverity Connect.
http://coverity.mongodb.com/query/defects.htm?project=CXX+master&cid=114130
The defect was flagged by checker UNCAUGHT_EXCEPT in
file /src/bsoncxx/types/bson_value/view.cpp
function bsoncxx::v_noabi::types::bson_value::view::operator =(const bsoncxx::v_noabi::types::bson_value::view&)
and this ticket was created by kevin.albertson

Generated at Wed Feb 07 22:05:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.