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 29A0348B34 for ; Mon, 17 Nov 2025 18:53:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7B5A402DD; Mon, 17 Nov 2025 18:53:43 +0100 (CET) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id 0B275402C3 for ; Mon, 17 Nov 2025 18:53:41 +0100 (CET) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-bc8ceb76c04so2012036a12.1 for ; Mon, 17 Nov 2025 09:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1763402020; x=1764006820; 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=EYnwJyzgq3uHdJBATDVYC04QBfOFFKkog659BU8TZScoY4jmyxpy83t8hJ3NOnf8/q iuc4AZl6jqf4SVKVKwJFl1O7yFnIOLyLQuM4/doZOjWzwWYiS6MrPISebDHVL6cNXspZ BIqle3QPzubh3xkKx+427vWvSiCJ/v/sW/nEovt/P06CuMKIRgIAU+Bdz+xqwSo6CiwR 6a6SkToWxAxPUw0hdwqnDgyUyHTlRqM1oeNuDLrB7OfMiTkgG+Q8xgDKeXag3ckCnJax NZ88EF+PL+2CZ6lP0MAIiqwLkT3wsWsvvxjPxenN/GjNOAYMFvlL4EbfCmT/6BF3vmpa ov0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763402020; x=1764006820; 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=wPEaCzJQZgbmEjb5LknEC1day0LmswICNc7Exd+otx/6cjGeXiM0Jb2MxZlN3KyvNg kVqtrrRd+yDtt4i8TQ23w+uC6Ffk26LTWWse7jsHqrq39pRJZmnvbVPrFyYEKiz3ZzLh 6tQNiAmyE5ZcXjBMi6oD2q/xDMHCJyFfcNr1jmqfifw9A+0zvhQdK522udFaqDXMKuYq VfdPrQKfYLxyFI6rRIU33u8+H7vvnQvwMjIGfahXM0N9JBnbUjHBwzc/c3/q99mCG7LD bA3HjG+g40N36AflLdoJJ5X7VbKEgFqpXgeGJG0WtATU8gM+oUlKozhxHIiKBBAylMbc LdCw== X-Forwarded-Encrypted: i=1; AJvYcCVMqNqKuyRMH4K23M8Q6Gx/k1r3CGhCMksj6XAnEZgRhBLLtCcJFGeRr2psjnpO62GJpy+2RlQ=@dpdk.org X-Gm-Message-State: AOJu0YwqNW/xXOTwBxHizocnZtfKqB/38jBm0G3JcWG/uVpSXcaWqEFc cu/nWuZV+D5vmvUqy5I9+xJ/jHvCwnUDIZ0bScm49WXYXJiOEB5WxttgeOwfLCc/iqQ= X-Gm-Gg: ASbGncvXkN/27PKNn9HkSc+XsOkj8PqmsQPMiMVyBOlyIqh/DVbkaMem11gGdJ4b5oa 95o9y5jz5kxJk5F5WbuesVHqZIYOwaOy5D/8p8J0RCltiOt4WO2PNew+x3uYp4No2hHC4nl3hks XY/SWftySWL+zw5+BHUvut2HV6xFGgoLDgBRImlYKb9H1z9OTBIipEDbvEyPF5sLBVE7YmsDHqt cSpoo7gfq92Hr9QGu9jrXsTCb0+aR+FnxWRD7mUc+JpdIK4Exh7z4BbrpuFLSYDSliXJXQ1+DH4 NtHl/GQ3EAME/mZsVBXNl3QBSZOad5E3rCskDj4fiiXYL/jQLsySML3Ou0hA9V3ZQ67wmwEPo3W XnaC5rMZWpvEFFDchhPZKXtx+mNv0ACTz77koNJaAubkisIaHSfji9W6eApfsKZLkXvDsJkyo6p Ak2n63zsAxLlddVWYFdjnKcZi0WjklJHjHHFuJ8AyAnyIxuSTI7Q== X-Google-Smtp-Source: AGHT+IHwtxoe7DGNIqTePU6WPLe1BSqnDphJVZkFotCC++fmGGOZ2eiumTU74VbyhwPEOU0Vwm3aGg== X-Received: by 2002:a05:7300:7892:b0:2a4:3593:c7e3 with SMTP id 5a478bee46e88-2a4abd79e8dmr6778366eec.35.1763402020017; Mon, 17 Nov 2025 09:53:40 -0800 (PST) Received: from phoenix.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2a49d9ead79sm63457494eec.1.2025.11.17.09.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Nov 2025 09:53:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , stable@dpdk.org, cristian.dumitrescu@intel.com, Pablo de Lara Subject: [PATCH v3 4/6] test: fix format overflow warning in ACL test Date: Mon, 17 Nov 2025 09:52:11 -0800 Message-ID: <20251117175332.14014-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251117175332.14014-1-stephen@networkplumber.org> References: <20251115193409.99740-1-stephen@networkplumber.org> <20251117175332.14014-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