* [dpdk-dev] [PATCH] net/i40e: fix string overflow issue
@ 2017-10-20 2:21 Beilei Xing
2017-10-23 20:11 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Beilei Xing @ 2017-10-20 2:21 UTC (permalink / raw)
To: jingjing.wu; +Cc: dev
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index f40c463..e809613 100644
--- 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;
--
2.5.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: fix string overflow issue
2017-10-20 2:21 [dpdk-dev] [PATCH] net/i40e: fix string overflow issue Beilei Xing
@ 2017-10-23 20:11 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2017-10-23 20:11 UTC (permalink / raw)
To: Beilei Xing, jingjing.wu; +Cc: dev
On 10/19/2017 7:21 PM, Beilei Xing wrote:
> 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>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-23 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20 2:21 [dpdk-dev] [PATCH] net/i40e: fix string overflow issue Beilei Xing
2017-10-23 20:11 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).