Reviewed: https://review.opencontrail.org/44089 Committed: http://github.com/Juniper/contrail-controller/commit/16a43cec6f9ba9362c8a255ee8fff0ed286da07b Submitter: Zuul v3 CI (<email address hidden>) Branch: master
commit 16a43cec6f9ba9362c8a255ee8fff0ed286da07b Author: Anda Nicolae <email address hidden> Date: Mon Jun 18 17:07:35 2018 +0300
Coverity issue in contrail-controller/acl.cc
I have run Coverity on branch R5.0 and it reported the following issue in contrail-controller/acl.cc:FirewallPolicyIFNodeToReq()
uninit_use_in_call: Using uninitialized value ace_spec.type when calling Reverse
I've noticed that type field is indeed set in Reverse() function, but its value is never checked (for instance, in an if clause).
A solution I have found is to add another field, named NOT_USED, in enum AclTypeSpec and initialize "type" field with NOT_USED in constructor.
Change-Id: I6cbc8063d7ac01644a97edd30cf021d41c8fe303 Closes-Bug: #1777452 Signed-off-by: Anda Nicolae <email address hidden>
Reviewed: https:/ /review. opencontrail. org/44089 github. com/Juniper/ contrail- controller/ commit/ 16a43cec6f9ba93 62c8a255ee8fff0 ed286da07b
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit 16a43cec6f9ba93 62c8a255ee8fff0 ed286da07b
Author: Anda Nicolae <email address hidden>
Date: Mon Jun 18 17:07:35 2018 +0300
Coverity issue in contrail- controller/ acl.cc
I have run Coverity on branch R5.0 and it reported controller/ acl.cc: FirewallPolicyI FNodeToReq( )
the following issue in
contrail-
uninit_use_in_call: Using uninitialized value ace_spec.type
when calling Reverse
I've noticed that type field is indeed set in Reverse() function,
but its value is never checked (for instance, in an if clause).
A solution I have found is to add another field, named NOT_USED,
in enum AclTypeSpec and initialize "type" field with NOT_USED
in constructor.
Change-Id: I6cbc8063d7ac01 644a97edd30cf02 1d41c8fe303
Closes-Bug: #1777452
Signed-off-by: Anda Nicolae <email address hidden>