Skip to content

CID 1508911: Unchecked dynamic_cast #10417

@maskit

Description

@maskit

Http2ConnectionState.cc

    	10. dynamic_cast: Dynamic cast to pointer dynamic_cast <Http2CommonSession *>(this->session->get_proxy_session()) can return NULL.
    	
CID 1508911 (#1 of 1): Unchecked dynamic_cast (FORWARD_NULL)
11. var_deref_model: Passing null pointer dynamic_cast <Http2CommonSession *>(this->session->get_proxy_session()) to is_outbound, which dereferences it. (The dereference happens because this is a virtual function call.)
1535  ink_assert(dynamic_cast<Http2CommonSession *>(this->session->get_proxy_session())->is_outbound() == true);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions