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 1D3F84606E; Tue, 14 Jan 2025 18:42:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB15740299; Tue, 14 Jan 2025 18:42:43 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 6DD9840298 for ; Tue, 14 Jan 2025 18:42:42 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-21670dce0a7so125541915ad.1 for ; Tue, 14 Jan 2025 09:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1736876561; x=1737481361; 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=GSSlEMFfsJVSiWDKPrO4fXuV8Idj7VzgEYq36FIW4X4=; b=lYhJXAcMOjt57ZgS9m9gxIMW5XArmSmVthgATP40FlG5GlWSIAMfP9JD3g1d9tXHuY OUM/TCwd8G7eQ4qAQ3BQzwc++3iMmkthSl65f1suKkRV3yfAdgNnR8k6pShbJb+Jx58r hW1XV1d9rZuKYTp34HnJsX19j8WZ49MVHnjN5k0/FWCrNpz1cNb5LaaBP4SscgNNOwWu hJSwoaRZCDVxB9/+Q9o83Y3fiu2bOIjnWFLUBG7qGTJZb8P9hbH3BVN2JMvBOlh8ARrj JBZR0i3MIE6MgXdTMgmzOnW4jx0/Ki6NUhvzH+xOdqW5FbgEvUPEP45+T/xjQ+Jb8MTS obsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736876561; x=1737481361; 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=GSSlEMFfsJVSiWDKPrO4fXuV8Idj7VzgEYq36FIW4X4=; b=rFGhweMX0iv2zKOshOrI26ea5lnZDD8ipYWTU6BVHcmwBQGyJIryLq8PNc8g36gSNy aEb0tok52qVZuCZXkmLHeyI9cj8cuKYKOFUZV3aDtWx6VlukhpQ3wcILXC67Pdp8pMJG scOmnm8IKrByD9q82SPDYMjpz0tLZ/NvKOdWmHWwl+iGhpCsbE0TSZpnlXpb4vFuT+e7 tYq3joTLzzNSpW73qQQRtL7IayWhKGOIVVqGwZpxYfQh4xP+3CJBdweUXwyc6eB1jrhT ySoAoySMsCo3s3RjkAZPcFz4s+bV3LZsy9hyWrlcYH6Zj0PETPHIT36JQF0bzyNWp7xv vwTg== X-Gm-Message-State: AOJu0YyHIpQHOeAY1RymyIMUJzRBLXTEzxbmxKc1Ct3g34BvR8G95wr0 Q5kjzMHapeqQF2pCLYo4k6xt5VhyNWbApfbb3KR+6V87nopYWTQiGgHVd+Z5bvy1M4NzCsoku3b T X-Gm-Gg: ASbGncuHVXfnV9gaMaw1Js21hgscxZeGq9hn+tN1g4uDrr6rmz1OKRTUqxvUvUFvNQA 7JgWrQ8HrgYeAzhR1X62wnT9PCIX3X1EMJupIAeNSET+wBqaW3A07zKFp1UAq68ZS7GSRk6SDrN NMvvZ07Qm/Y7Uo45agC5461gMBocBEgYjOlg3/WPXRqxEPYk9x7m5KoV4BKzayGj6N+azz+nXK+ wMWZ/VeakZs8JQraHW7OdUitltEU6oOuU++t1824kW2WP/fFqlKJ7RSOnFIBNGu9fO5+adRjxed tIWtciEQDOtnCamgx7h+uB2FVdsOkz58LA== X-Google-Smtp-Source: AGHT+IH+1ZinL3MDPFPN9nNo7vGUVOvbAJ9TjZ8AlepcGOS6pHVUDXLLmlQEsI6DwhZ2Gsid8ajP/A== X-Received: by 2002:a17:902:d48a:b0:216:4064:53ad with SMTP id d9443c01a7336-21a840109d2mr397124975ad.48.1736876561513; Tue, 14 Jan 2025 09:42:41 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21a9f25c6a7sm70002475ad.247.2025.01.14.09.42.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 09:42:41 -0800 (PST) Date: Tue, 14 Jan 2025 09:42:39 -0800 From: Stephen Hemminger To: dev@dpdk.org Cc: Maxime Coquelin , Chenbo Xia Subject: Re: [PATCH v2 5/5] vhost: use strlcpy instead of strncpy Message-ID: <20250114094239.56b8dda0@hermes.local> In-Reply-To: <20241219225253.782792-6-stephen@networkplumber.org> References: <20241218170530.140747-1-stephen@networkplumber.org> <20241219225253.782792-1-stephen@networkplumber.org> <20241219225253.782792-6-stephen@networkplumber.org> 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 Thu, 19 Dec 2024 14:49:55 -0800 Stephen Hemminger wrote: > Some tools such as gcc address sanitizer will complain if strncpy > is used to completely fill a string since it will not be null > terminated. Since the previous code forced as null at end, > use strlcpy() to get the same effect. > > Signed-off-by: Stephen Hemminger Recheck-request: iol-compile-amd64-testing