[SERVER-16684] Coverity analysis defect 49093: Unchecked dynamic_cast Created: 29/Dec/14  Updated: 15/Jan/15  Resolved: 07/Jan/15

Status: Closed
Project: Core Server
Component/s: Internal Client, Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.8.0-rc5

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Spencer Brody (Inactive)
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
Participants:

 Description   

A new defect has been detected and assigned to spencer in Coverity Connect.
http://coverity.mongodb.com//sourcebrowser.htm?projectId=10001#mergedDefectId=49093
The defect was flagged by checker FORWARD_NULL in
file /src/mongo/client/parallel.cpp
function mongo::ParallelSortClusteredCursor::setupVersionAndHandleSlaveOk(boost::shared_ptr<mongo::ParallelConnectionState>, const mongo::Shard &, boost::shared_ptr<mongo::Shard>, const mongo::NamespaceString &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, boost::shared_ptr<const mongo::ChunkManager>)
and this ticket was created by asya



 Comments   
Comment by Githook User [ 07/Jan/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-16684 Assert that dynamic_cast succeeded to satisfy coverity
Branch: master
https://github.com/mongodb/mongo/commit/8197195ce0faee1df316b2b45649cbc61dcf3ec8

Generated at Thu Feb 08 03:41:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.