From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98E58A10DA for ; Wed, 31 Jul 2019 20:56:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DB9E1BF13; Wed, 31 Jul 2019 20:56:41 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 3EEE11BEFB for ; Wed, 31 Jul 2019 20:56:40 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76C6A30860BB for ; Wed, 31 Jul 2019 18:56:39 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-235.brq.redhat.com [10.40.204.235]) by smtp.corp.redhat.com (Postfix) with ESMTP id 03E0760852; Wed, 31 Jul 2019 18:56:37 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: aconole@redhat.com, msantana@redhat.com Date: Wed, 31 Jul 2019 20:56:30 +0200 Message-Id: <1564599390-9684-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 31 Jul 2019 18:56:39 +0000 (UTC) Subject: [dpdk-dev] [PATCH] test/eal: fix incorrect array sizes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Following removal of -c and -n options, the array should have been shrunk to avoid launch_proc to access unitialised strings. Fixes: b4dbacdb1ad7 ("test/eal: set core mask/list config only in dedicated test") Fixes: 501fa9a40298 ("test/eal: set memory channel config only in dedicated test") Signed-off-by: David Marchand --- app/test/test_eal_flags.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index 827ea88..5b2c0f5 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -244,7 +244,7 @@ test_whitelist_flag(void) snprintf(prefix, sizeof(prefix), "--file-prefix=%s", tmp); #endif - const char *wlinval[][11] = { + const char *wlinval[][7] = { {prgname, prefix, mp_flag, pci_whitelist, "error", "", ""}, {prgname, prefix, mp_flag, @@ -310,7 +310,7 @@ test_invalid_b_flag(void) snprintf(prefix, sizeof(prefix), "--file-prefix=%s", tmp); #endif - const char *blinval[][9] = { + const char *blinval[][5] = { {prgname, prefix, mp_flag, "-b", "error"}, {prgname, prefix, mp_flag, "-b", "0:0:0"}, {prgname, prefix, mp_flag, "-b", "0:error:0.1"}, @@ -414,7 +414,7 @@ test_invalid_r_flag(void) snprintf(prefix, sizeof(prefix), "--file-prefix=%s", tmp); #endif - const char *rinval[][9] = { + const char *rinval[][5] = { {prgname, prefix, mp_flag, "-r", "error"}, {prgname, prefix, mp_flag, "-r", "0"}, {prgname, prefix, mp_flag, "-r", "-1"}, -- 1.8.3.1