net/tap: fix possibly unterminated string
authorKeith Wiles <keith.wiles@intel.com>
Fri, 17 Feb 2017 15:43:04 +0000 (09:43 -0600)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:50 +0000 (15:52 +0200)
commit865787886101310954ddc35eb5c29b3ab7b9c055
tree12cd077fc17f6de3f81948f00e2690f70de2aa3d
parent2972254ce1630548d7b62ef7a6c61ce7c1a4b124
net/tap: fix possibly unterminated string

Calling strncpy with a maximum size argument of 16 bytes on destination
array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the
destination string unterminated.

Coverity issue: 1407499
Fixes: 6b38b2725cdb ("net/tap: fix multi-queue support")
Cc: stable@dpdk.org
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c