From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3124B48BFE for ; Mon, 1 Dec 2025 23:04:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7060340668; Mon, 1 Dec 2025 23:04:35 +0100 (CET) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by mails.dpdk.org (Postfix) with ESMTP id BE5D54060F for ; Mon, 1 Dec 2025 23:04:32 +0100 (CET) Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-8a3eac7ca30so296870185a.2 for ; Mon, 01 Dec 2025 14:04:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1764626672; x=1765231472; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fm0fKRDS4YRVts/D6rPe52eqre9y2vs0bibayAdUECg=; b=HXpmHi3vJVVqOG9WnbNkZN7eENlyEFn9Xb3AWr5U1NbaCs+UHpliTmIuoqCQfrvBpw p6dLoqDBviYejYPOfii9cfYGt6Np6SxB832mcJIxcbFC83dGOs2PW/LDTAOicwQ79oPW tB8vRuYIqu/Kc5zg7UCT6uR4/llA9ancX5IKwTIfeT8Tf3gR9SPiWCYXANPXdPDj7irq 9iY1iJQbWchOq2CR4xr3cfAG8p/RU3vspn5jtwJTqC2Wm+sZrFBjoSNdk5mQocWXaofp 6fvoy4AZwm2Mfj2bBmf4X8wv3p2MhsZxHdrBLirPOn/9LvtY1OhE+XF7JngljkOIfEA9 0okQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764626672; x=1765231472; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Fm0fKRDS4YRVts/D6rPe52eqre9y2vs0bibayAdUECg=; b=wuGUHspfZf2j/ezU25Lsb+AAWEQYSRV/rQZBFdCDvRhM4wpApIsn77acsS9p6Y6YRC y35ScEmALNwOQ48BalFe4qRxHOcQ8xmSlxt27xUFIaNwBMJyIOWhKfxTm3+Mh/VNoeps R1GX+iMJjek41LK1xbBp9UlGkHCNFUjH31iydLqt5h8XCoShs6iJTi5pbugAM23QkhLy EMzgEXxyzZsMCrlBJDYqmFABD3auZqilBy1uO3f2NlVnvdX4A8cAePpvIJVG5Oai4BaU a+zbBQtdLyPo9XtQiaXe9KxLXv0DLRcWdwFTmqMDt+XTXv2SsWxqkJT//6/KNdo6fxBd dq2Q== X-Forwarded-Encrypted: i=1; AJvYcCU/9LxayxIrzd0PsF7YqoAxad8dPr6wVmTxlWFjA2rec7SrtWicC8YteFbIzz9MZgE8td8EeJs=@dpdk.org X-Gm-Message-State: AOJu0YzI1cpn0eueJzb9I2x7YStH0HpvMkoVn6v2EFwlPLuEzZBFOj7l Nw+HMkg4jICQTos9h8F2sgiODq3ToWg1f7kIQSFIWaDuj2x+aN1Xq99dBdDYVcSX3BI= X-Gm-Gg: ASbGncuCwGcvV17mSnCH8apg5mtgJXOuRF+5k2vMtYIiwZD3maoJCXEs/pdCD3xk1zm IBogJVqk/MpVSbWXbwzlZGGHqjhcO5hTr01qNLhT+6eKc6xeeUO8TC20i79b1zhnuib1S1MMxBr q+ixmtqZ8QFJmd5IjjUyJ4B+0GcGborzjKx85KhQvH8f8q3eNzeZRlWnB45afNgPTyuow/Mvw8l nkHShQCqIRl7SkpBIiNcbl4wJ+uj4br3QWDMP9C2ZBkeAgeQgjWop2VVknTaGbC2T9rd0YPO8CS 9e+W7ew8m+EgxrRY+9J2Ft1ojTmJu2j95l9y7j3NvKeRPkuFrK4JHfhkUwcGYMBAym3oaRJX7LQ HxJLS490XPjD9DV1czkrQP/akgi5S8vMNuWHMAs6BOzBtSXMat4stUHc+AV7vLJdcaI1f4ccFV+ eP7ujxIGwSFhsw23J2vGr+b9pu5Dv4Tiw/qPmdvVWChMeqPpMLgCPYw/NsOw4P X-Google-Smtp-Source: AGHT+IGpVBK4bpTWlHEYRXUfwuw+sd/Y2UcFDCGKTwtEqfjJtIx5C6Tsr4QY/KrpjEHYkALujP+MaA== X-Received: by 2002:a05:620a:318e:b0:8a2:689a:edbe with SMTP id af79cd13be357-8b4ebc4421fmr3540089385a.3.1764626672002; Mon, 01 Dec 2025 14:04:32 -0800 (PST) Received: from phoenix.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8b52a1cad4esm934398885a.45.2025.12.01.14.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Dec 2025 14:04:31 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , stable@dpdk.org, Anatoly Burakov , Cristian Dumitrescu , Pablo de Lara Subject: [PATCH v9 5/9] test: fix format overflow warning in ACL test Date: Mon, 1 Dec 2025 14:02:03 -0800 Message-ID: <20251201220421.207285-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251201220421.207285-1-stephen@networkplumber.org> References: <20251110182209.104087-1-stephen@networkplumber.org> <20251201220421.207285-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This test has an array of input lines, but the two dimensional array confuses compiler length checks. Convert to an array of pointers to fixed strings which avoids the problem. Make both variables static since not shared with other code. Fixes: 5205954791cb ("app/test: packet framework unit tests") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Acked-by: Anatoly Burakov --- app/test/test_table_acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_table_acl.c b/app/test/test_table_acl.c index dff9bddfb9..94edf37234 100644 --- a/app/test/test_table_acl.c +++ b/app/test/test_table_acl.c @@ -317,7 +317,7 @@ parse_cb_ipv4_rule_del(char *str, struct rte_table_acl_rule_delete_params *v) * separated by ' : ', just ':'. It's a lot more readable and * cleaner, IMO. */ -char lines[][128] = { +static const char * const lines[] = { "@0.0.0.0/0 0.0.0.0/0 0:65535 0:65535 2/0xff", /* Protocol check */ "@192.168.3.1/32 0.0.0.0/0 0:65535 0:65535 0/0", /* Src IP checl */ "@0.0.0.0/0 10.4.4.1/32 0:65535 0:65535 0/0", /* dst IP check */ @@ -325,7 +325,7 @@ char lines[][128] = { "@0.0.0.0/0 0.0.0.0/0 0:65535 206:206 0/0", /* dst port check */ }; -char line[128]; +static char line[128]; static int -- 2.51.0