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 2E866A00C2 for ; Thu, 16 Jun 2022 15:16:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24F61410D1; Thu, 16 Jun 2022 15:16:57 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 120DF4003C for ; Thu, 16 Jun 2022 15:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655385413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VfW3AdjNF1wr7ear7vA0an7Ee8gIMTNKuFnWureNwsc=; b=W3e5o5SDzaotgPcCNkErFxQmgKPW0qTgHUIwD6fjDpgNtKcN8VMOcujfiwXpP5GU/ix43V t8ib28DcTOtMNiqNJOS/gk97eHXDV9yvupTaIqvkGS1jJ8OPb9ldZHAVqWFroiRmT4ZayT KBE5nWf13605xTTzcXiQnIJKuP1a2tE= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-300-cX1DKcSMNzCXKp2O8IsXuQ-1; Thu, 16 Jun 2022 09:16:51 -0400 X-MC-Unique: cX1DKcSMNzCXKp2O8IsXuQ-1 Received: by mail-lf1-f72.google.com with SMTP id b2-20020a0565120b8200b00477a4532448so759740lfv.22 for ; Thu, 16 Jun 2022 06:16:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VfW3AdjNF1wr7ear7vA0an7Ee8gIMTNKuFnWureNwsc=; b=2Se0Ey68fAzJ1+H44TpAdSpMQTae4dDpWij1Q9cmhkgMcc3yO/kE7eLHmthvuWmLxh st0uOFInXMqx2nPgVdT18Mle5XcuxzXIARXyYJAZ59b7n4GT4SfEZXV2rkZor9akVZ41 4i+mIPEs5xh5B0OeHMjooCjgh2qpLWD+vf+rK39BDnZFgz0xalnyz1H6kNQPDIaDH/l3 UcAP1L3El+jwHYB7bLqJILu250edLPK3EC5+yc6sbFUGrZ+yAVx3pdvTnSDObEXONYcw 1RmMq5j2CQ43aJxdlRoT44PiVe9ZArQSEYGrsCuLf67bTXxHdusaU+b30bC1Vg8o6BMW 4fZw== X-Gm-Message-State: AJIora/KXYv3kC+ICOEdDxAZHxOZM8d7+B2UrwjL5U/j/2F46RnbCmYF b1EfKvH57XyqUeqvN2ZW9GEbu4/xOQUtIkdb4EyC+g21OUoiPHTq+AfyLH7nietA4+FH5zNtSHq S4zJfFrjCmkmOfO29lJsXvxU= X-Received: by 2002:a2e:9e04:0:b0:255:a211:f440 with SMTP id e4-20020a2e9e04000000b00255a211f440mr2483359ljk.159.1655385409879; Thu, 16 Jun 2022 06:16:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJoZXCICCzaE4dSzD1actUQE933tgTqoMr/h8hiIoSux6Xmb2eWzX52Qm940h7GO3WlEpfC5fjCfVSk7V1i2c= X-Received: by 2002:a2e:9e04:0:b0:255:a211:f440 with SMTP id e4-20020a2e9e04000000b00255a211f440mr2483347ljk.159.1655385409655; Thu, 16 Jun 2022 06:16:49 -0700 (PDT) MIME-Version: 1.0 References: <20220616103944.132686-1-wenxuanx.wu@intel.com> In-Reply-To: <20220616103944.132686-1-wenxuanx.wu@intel.com> From: David Marchand Date: Thu, 16 Jun 2022 15:16:38 +0200 Message-ID: Subject: Re: [PATCH] app: fix gcc 12 array bounds warning To: Wenxuan Wu Cc: Wisam Jaddo , dev , Thomas Monjalon , Stephen Hemminger , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Thu, Jun 16, 2022 at 12:40 PM wrote: > > From: Wenxuan Wu > > when n == 1000, and it would overflow the array size of 4 bytes with > nul terminator. Change the logic to avoid this warning. > > Fixes: 15c431864000 ("app/flow-perf: add packet forwarding support") > Cc: stable@dpdk.org > Signed-off-by: Wenxuan Wu A different fix is already merged. Please check: https://git.dpdk.org/dpdk/commit/?id=5fc2eece8d45 -- David Marchand