Coverity issues in contrail-controller/pkt_sandesh_flow.cc
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Medium
|
Anda-Maria Nicolae | |||
Trunk |
Fix Committed
|
Undecided
|
Anda-Maria Nicolae | |||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I have run Coverity on branch R5.0 and it reported the following issues in contrail-
- uninit_use_in_call: Using uninitialized value vrf_id when calling InetRouteFlowMg
vrf_id_ is initialized if the following condition is fulfilled: if (getline(ss, item, ch))
However, the initialization of vrf_id may fail, and therefore we need to initialize it at declaration time.
- uninit_use_in_call: Using uninitialized value plen when calling InetRouteFlowMg
Similar logic as for vrf_id_. We need to initialize plen at declaration time.
- uninit_use: Using uninitialized value mgr_id in pkt_sandesh_
Similar logic as for vrf_id_ and plen. We need to initialize mgr_id at declaration time.
- uninit_use: Using uninitialized value proto in pkt_sandesh_
Similar logic as for vrf_id_, plen and mgr_id. We need to initialize proto at declaration time.
tags: | added: vrouter |
Review in progress for https:/ /review. opencontrail. org/42943
Submitter: Anda Nicolae (<email address hidden>)