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 591E248B5B for ; Thu, 20 Nov 2025 17:57:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 486344064A; Thu, 20 Nov 2025 17:57:26 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 2CAD540647 for ; Thu, 20 Nov 2025 17:57:24 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-7b75e366866so533257b3a.2 for ; Thu, 20 Nov 2025 08:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1763657843; x=1764262643; 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=VN44TebtzgLwJlKcYhgTRWjdzqlWwvrDtTMcE8IROAY=; b=RT5/168v2CebUqnGXhaWjsVlrXCKD6NZEb/0ssnaQu9JnqT8gBvpPrlQ/dHcUw+hWG wBhrAUGEgF9jVKzDwJQWTS0GHbaTgf8LPkSk/OTlV61LWzGflIhwIP9OkaX/zTNxT7UT gwSonpnfrWLcZN6r46INewbUVG8KZhGRD5SZ1IsTo5jJN8n/LoYp4NCaT2y/KxcN/SpO DAz2sY1DCMHoLEAvipiZgXC46Ywkby6vXFoRvCwAlBTEuYwLXIRT7hdaFXfUmtDxIv2C B93CYgRVZqrhv8FbySG0mwdNanx+9gfotF7Qesou1dIVScdNguFTZxGdfA+1H4AzJKxR Re5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763657843; x=1764262643; 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=VN44TebtzgLwJlKcYhgTRWjdzqlWwvrDtTMcE8IROAY=; b=OYRH8vQbUkBq5VAAj5me6o2Wj1r3lbLSyP8A5ctJm+8ga7tr/U9kvMPV0DIHEzGNkh oM919kx7J27feS69TWbRS068bLGQf9C35Yhl9xUaq3rpYs3Vofy1l50Ro/2MGF907IX/ n/8bShgzdPvztZWuzJ8YOfh1GROPMJlXfRNmyqTGmxYFfbwodab6MokfNaK5X9IreyVW l47KWTFCrIVGPCDShmmtk/ExEObAlX9Kie6vu/SV6tL0+3osvSxgCIZ94uOinnzm0Clq D3wi4M+7QqiMbzIcyxdR61MGz9TKDyRhm3v0RaWSGbDq3pOnGzZPAldNLrbrMVSTZt0i fYZg== X-Forwarded-Encrypted: i=1; AJvYcCVOY3HdN6VU59UU8wppzUlHDm/ROfkoIanZqtRdbsGxotvnY69rySwEhEETKbZf2+5WH71ynAE=@dpdk.org X-Gm-Message-State: AOJu0YwHHUdEUsOMVMT/NVzF9E3n0u8WxQYBnxU5H3ugGWP4O0glks4f ZaqTF3f9g+k3sLG2pwP0WsJXVnSTUZ2WfUugcn1+bCmRCFqSGbQwBffU0B7ZhVtcnmFgdeHn9Bt EhB5u X-Gm-Gg: ASbGnctxVliy7SxBOHhKFuT5XMM8O2u1YD9rpKLH/TGHe142mEJEDrc/kwOwY5B4cno E2htQtjGPn1VOkGWdDLaG7bu3nW0WuiU4QyT4KkSAeM5ca3zRnjoizWymfs3PkL/oUL/D8oKFVj 9O8OdS+DcPSdbx5QQuRLp2pVITzf81dn8Nd7RXY+/HSEIuTKfl4+cpVeSpodO9eqSFP9qK1klgx lVu+aQysboNNoguxDbgkwpKMV0O78Jicmr5xp9cZsXNTV/j/kev9FbWYvyOI9HXQGXt+EU4/Aw6 GkzFMVQUI8qbuVRQVlZw6xuU11jaxmIGnPiA5a4L5i2AINnCqCQa9iCF+8nzjgem/SMkxARJj08 6Z41oORbwQ45K5sUMcg+rjQ1perKHIM4VzClbOSmaTvUXu29GUhOcp0jSUy6QOzBvZd0mDrPIs3 TmeolyifMoTI7HyK5sqpkQvxo8eXaw/sXCO6IEl5EC6uBDaAyWzQ== X-Google-Smtp-Source: AGHT+IE2yaBewyqqTSeiA34SqXtbi6OUMHjOkGqII5LIT75KelxepkFFQ2D5oaLV5O7aztCBpZG1EQ== X-Received: by 2002:a05:7022:987:b0:119:e55a:9bfc with SMTP id a92af1059eb24-11c9388fe95mr1407347c88.24.1763657843067; Thu, 20 Nov 2025 08:57:23 -0800 (PST) Received: from phoenix.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11c93e55af3sm11536747c88.7.2025.11.20.08.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Nov 2025 08:57:22 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , stable@dpdk.org, cristian.dumitrescu@intel.com, Pablo de Lara Subject: [PATCH v4 5/8] test: fix format overflow warning in ACL test Date: Thu, 20 Nov 2025 08:55:33 -0800 Message-ID: <20251120165713.120238-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251120165713.120238-1-stephen@networkplumber.org> References: <0251115193409.99740-1-stephen@networkplumber.org> <20251120165713.120238-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 Cc: cristian.dumitrescu@intel.com Signed-off-by: Stephen Hemminger --- 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