patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [dpdk-dev] [PATCH 1/2] app/testeventdev: fix string overflow
@ 2017-07-31 10:04 Jerin Jacob
  2017-07-31 10:04 ` [dpdk-stable] [dpdk-dev] [PATCH 2/2] app/testeventdev: fix a divide by zero case Jerin Jacob
  2017-07-31 10:08 ` [dpdk-stable] [dpdk-dev] [PATCH 1/2] app/testeventdev: fix string overflow Van Haaren, Harry
  0 siblings, 2 replies; 5+ messages in thread
From: Jerin Jacob @ 2017-07-31 10:04 UTC (permalink / raw)
  To: dev
  Cc: thomas, bruce.richardson, harry.van.haaren, hemant.agrawal,
	gage.eads, nipun.gupta, gprathyusha, Jerin Jacob, stable

Coverity issue: 158660
Fixes: 4afd440ec132 ("app/testeventdev: update options through command line")
Cc: stable@dpdk.org

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
 app/test-eventdev/evt_options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c
index dbab8ea61..65e22f845 100644
--- a/app/test-eventdev/evt_options.c
+++ b/app/test-eventdev/evt_options.c
@@ -109,7 +109,7 @@ evt_parse_queue_priority(struct evt_options *opt, const char *arg __rte_unused)
 static int
 evt_parse_test_name(struct evt_options *opt, const char *arg)
 {
-	strcpy(opt->test_name, arg);
+	snprintf(opt->test_name, EVT_TEST_NAME_MAX_LEN, "%s", arg);
 	return 0;
 }
 
-- 
2.13.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-31 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-31 10:04 [dpdk-stable] [dpdk-dev] [PATCH 1/2] app/testeventdev: fix string overflow Jerin Jacob
2017-07-31 10:04 ` [dpdk-stable] [dpdk-dev] [PATCH 2/2] app/testeventdev: fix a divide by zero case Jerin Jacob
2017-07-31 10:09   ` Van Haaren, Harry
2017-07-31 10:08 ` [dpdk-stable] [dpdk-dev] [PATCH 1/2] app/testeventdev: fix string overflow Van Haaren, Harry
2017-07-31 20:41   ` Thomas Monjalon

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).