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 65CF045813; Mon, 19 Aug 2024 17:10:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E34B740658; Mon, 19 Aug 2024 17:10:13 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id A615440267 for ; Mon, 19 Aug 2024 17:10:11 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-70d1d6369acso3483622b3a.0 for ; Mon, 19 Aug 2024 08:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1724080210; x=1724685010; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xxW+cEBQWnnPMO6hfATTyHEQgAoGCrzpUmc5fd0B8Ck=; b=MgDAePV3cUBBwtwqxvVXn+aHYh59tL76EbkmQ2dxh2mCliQbDKmCzLPgwzmlroyUO+ TqOJyi+cpYfPp1rifat+lOfXTczNE9d+IcGsnvAwYWLodvxE8JyH1BFHwWQ4nBihTfmM qYjkb/ofCXVmqs3pOFplg3qhp11p1Ip1wCsaxrvo+us8q1yR9HchiCZ/MMfWHUEFM9SK wWqluBhAtUnHvbrqj2Cq6uWeod2a+2DN0JROSNXYjyojKfKy6mlT76sfTxDaR43mqIMH nsWt+wT7yQoA4LdiotPL+M5ngMPWLFWLoG0FT6/98qHlKngrJfJwAkFlYCU1nPJdjobR qTjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724080210; x=1724685010; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xxW+cEBQWnnPMO6hfATTyHEQgAoGCrzpUmc5fd0B8Ck=; b=S/lQc2tmX+boNo3XSOHwgYeDC8flPZ4OTqMAsa6El4IXG5Txpkg+u/TP+QidyezoJS PSVkEFjLaXJTNG3PuGobuZoA7sI++eyChjp8q+irQb26RP1ULhzwp12sjsEuuTlpSCpj IzzNgPxkhbg4IasPybPpnMQXpv4bJmvbsQ9G11/deOPFjXbzi2r+kemiwda51FWvpUbL khMw5lKBf1tZRonwFZ8OrXfIbHdxjXdP+A4Poa4AR+j6nu4zjzodkH0lOg8r+tzyveyf LNzPXrYGVfCDumDtM3E8CIKa1JDk7ZOgQPZ6yStODwMhbVjKcFEpmUbDGt1nqaKoXAhb MsmA== X-Gm-Message-State: AOJu0YzaQ02f0df6Ugkji5QHDn+z4bRGpdQUFDddrmlFk00tJEN8PORt e5Bd7ZiXuslNpUM20iHRfetTIwtQ0eaDiuDDmJGWFayHv10lbM9IahgIIV777zQ= X-Google-Smtp-Source: AGHT+IGE9mQwdfmd2yFGwV67G7BqWzSKEhbp9XGX1lgihywvK6uLs3xsNRiaiFoffEtosED5MxPzdQ== X-Received: by 2002:a05:6a21:c98:b0:1c4:d32c:5267 with SMTP id adf61e73a8af0-1c9a2b86979mr18567034637.16.1724080210310; Mon, 19 Aug 2024 08:10:10 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7127ae07443sm6696241b3a.48.2024.08.19.08.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 08:10:10 -0700 (PDT) Date: Mon, 19 Aug 2024 08:10:08 -0700 From: Stephen Hemminger To: Ferruh Yigit Cc: dev@dpdk.org, Thomas Monjalon , David Marchand Subject: Re: [PATCH] net/tap: avoid memcpy with NULL arg Message-ID: <20240819081008.5a9b121c@hermes.local> In-Reply-To: <910231e7-6cd4-4da6-987e-1f97c7484018@amd.com> References: <20240814023426.124491-1-stephen@networkplumber.org> <559f1db2-395e-4d93-ba63-650cfed481eb@amd.com> <910231e7-6cd4-4da6-987e-1f97c7484018@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 19 Aug 2024 12:04:57 +0100 Ferruh Yigit wrote: > On 8/19/2024 12:03 PM, Ferruh Yigit wrote: > > On 8/14/2024 3:34 AM, Stephen Hemminger wrote: > >> Calling memcpy with a null pointer even if zero length is > >> undefined, so check if data_length is zero. > >> Problem reported by Gcc analyzer. > >> > > Btw, how do you run the GCC analyzer? > Is this something can we add to our CI checks? I just added it to cflags in meson build. Tap only had this warning, but mlx5 had lots of warnings.