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 05D6947132 for ; Mon, 29 Dec 2025 23:01:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35A6B40664; Mon, 29 Dec 2025 23:01:10 +0100 (CET) Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) by mails.dpdk.org (Postfix) with ESMTP id 388544066A for ; Mon, 29 Dec 2025 23:01:08 +0100 (CET) Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-64d4d8b3ad7so9803613a12.2 for ; Mon, 29 Dec 2025 14:01:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1767045668; x=1767650468; 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=bxi4RNf9DxFPERZmFdzPxzgLheLrKXg98qn+koSA6pEjQVvQxXSaLN6bqBc5+p+f81 ObxwqYM5t4flNytTSrrNiA8spi+V8X8QbidmSa6uyWsx322gnEcmk66WIDoofpLQq5oQ 5wjugPQ0l7xkzqjdWNTU+61/MIGzT2iiZatdpbwlIQwdmQZfrGXnWHrTi39jTO57gru8 PACIUVTbcLoi8cjFpNwWWnrCZBLobfqyn8242catB2wAXvBW33K3iWRsTPKYN3S8qzZj 22olooHhr0YH5ia6dgZ2yA1lIItSPbes75NICATZhmWINgl2GDybw4BGv7J8aMiaUfKn ROrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767045668; x=1767650468; 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=r4s8ias95Mjn9N5NNXmbZBn66vk9Y7NZ23lUnGf5AVm/aBfKmEoI5cJbLzK2ahIaUX b7RA5LNXokyiLugT79I6/CtjKpaAk5/kSfmMIqbg7uUmrN80q780yQAiYBGcOSfP2nvn I8KdodmmYagM4sW9KqhC0P/4x2Dj7XQSwbPtcy3CzyIE96MSuuocqua08VH3+kgXfMQs FU3LDFjcutc6qnX1XYj9+ZF6pQViahsxK50w649+CilST9rgRqqWWpQk9GWWwuIJLy7T DtSfqhX0XMFWnFXtuXN8J2YXFL4BgC7R3OxPoVhZmvqGzlQlfZ5FIM/tXG5S6kN9SygV HVug== X-Forwarded-Encrypted: i=1; AJvYcCXMRoRmUitxmYKwv9rh832rYVfZlhYpLWuVY+YovcG4037H80E2yJe16Qh7nwQjRNddORfhAbI=@dpdk.org X-Gm-Message-State: AOJu0YxUyHMOcHPv14LEHLVgvy7ChNA0rC0paQV7IU6Hmv8eKALwiFuC +E5WwSHNB+gs3+POG3r0SslnrrsmUKGpQ6tsEX8ZfI4xjHJkDQz+QHhF0ve0wH87zvE= X-Gm-Gg: AY/fxX7iSOKejthV7KnvK7hnuHlOqc77KrfLAA5ccvfVEaQmHUdUkgvIF6oBYgMxpnE C2u2gv3NAba4/cY6Rp6zTSZ9jhq+sC0Y9B9+WIRP9YW04WttvXImHjdtnC0xpPux4UVs4boqzsr kaLaQiz+kmhSTjFQ5PAiNUB9uLKeX8gaQ9gkYkwARcArzAIbGLYgUkcUwuPkN2X0YSoFkd28eZh kkmeiFduh2bg87AWkkil1d0Ga6M1BLM2Z7qk/25/fQ8XetGTjGctcEzGirotEPVABNOyuNiI3j2 OWBSn8nZKQorGUiIV/Phwl8JBkncVd8RfjWIYJlPhtHcwxdrcLrLOKX3VOTVlQGU/2WpPYZQY8+ ofjE3Y6IaOJ0Cd5betTlkpTIWI9EGfAwwctvVnEpZyPzkUBuFXemD/p5AUKSphDiSHEaAMpqV5n l5ZMPSL2ufxOh5X3a0z9DpzUWXK3Gq6oBDl73wPE0aGIjawu9poyGUS7oH1k0R X-Google-Smtp-Source: AGHT+IEILMN0F83g1nlW9haDyeyb5Rq+sW/bwKi74k3y5ClDpSqbV+Frft6N2vARcDSXfk+9BbGMTg== X-Received: by 2002:a17:907:c14:b0:b80:1309:aa09 with SMTP id a640c23a62f3a-b803718387cmr3486098566b.47.1767045667120; Mon, 29 Dec 2025 14:01:07 -0800 (PST) Received: from phoenix.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037a62973sm3496359366b.6.2025.12.29.14.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Dec 2025 14:01:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , stable@dpdk.org, Anatoly Burakov , Cristian Dumitrescu , Pablo de Lara Subject: [PATCH v10 5/9] test: fix format overflow warning in ACL test Date: Mon, 29 Dec 2025 13:59:05 -0800 Message-ID: <20251229220053.21981-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251229220053.21981-1-stephen@networkplumber.org> References: <20251110182209.104087-1-stephen@networkplumber.org> <20251229220053.21981-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