Coverity issues in contrail-controller/mvpn_table.cc
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Undecided
|
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 prefix.
- uninit_use_in_call: Using uninitialized value prefix.asn_ when calling MvpnPrefix
The issues listed above are encountered in the following functions from mvpn_table.cc:
MvpnTable:
MvpnTable:
MvpnTable:
MvpnTable:
MvpnTable:
MvpnTable:
Indeed, the called MvpnPrefix constructor does not initialize neither ip_prefixlen_, nor asn_.
Solution is to initialize these variables when declaring them.
tags: | added: vrouter |
Review in progress for https:/ /review. opencontrail. org/42936
Submitter: Anda Nicolae (<email address hidden>)