git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f4fa4
)
net/i40e: fix string overflow issue
author
Beilei Xing
<beilei.xing@intel.com>
Fri, 20 Oct 2017 02:21:19 +0000
(10:21 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000
(
02:33
+0200)
This patch fixes the coverity STRING_OVERFLOW issue.
Coverity issue: 195002
Fixes:
e163c18a15b0
("net/i40e: update ptype and pctype info")
Reported-by: John McNamara <john.mcnamara@intel.com>
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/i40e/i40e_ethdev.c
b/drivers/net/i40e/i40e_ethdev.c
index
f40c463
..
e809613
100644
(file)
--- a/
drivers/net/i40e/i40e_ethdev.c
+++ b/
drivers/net/i40e/i40e_ethdev.c
@@
-11070,7
+11070,7
@@
i40e_update_customized_ptype(struct rte_eth_dev *dev, uint8_t *pkg,
struct rte_pmd_i40e_ptype_info *ptype;
uint32_t buff_size;
uint8_t proto_id;
- char name[
16
];
+ char name[
RTE_PMD_I40E_DDP_NAME_SIZE
];
uint32_t i, j, n;
bool inner_ip;
int ret;