Coverity reports buffer size warning
Bug #1770113 reported by
Anda-Maria Nicolae
This bug affects 1 person
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 issue on file pkt0_interface.cc:
buffer_
The offending line is:
strncpy(
which appears 3 times in pkt0_interface.cc.
I've noticed that in several parts of code, name_.c_str() is used, which is guaranteed to be a NULL-terminated string.
tags: | added: vrouter |
To post a comment you must log in.
Review in progress for https:/ /review. opencontrail. org/42886
Submitter: Anda Nicolae (<email address hidden>)