Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10898408ybi; Thu, 25 Jul 2019 06:45:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbUmOkUF8EDNzvJT+Fwzs3Ulug/2ntnr8h90X/Sj3GvnOpNVp3dZg7CPdWVxemc0DG8VFI X-Received: by 2002:aa7:9146:: with SMTP id 6mr16219064pfi.67.1564062335421; Thu, 25 Jul 2019 06:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564062335; cv=none; d=google.com; s=arc-20160816; b=S8L8J3CAqSgjEVwM2/4NK2BBnXaac+RY5DD0R4OW2BeVDTJX1M/O4t3VJWdALZEwec Zz6c9Wt/+nSqb21JaeVPyMnfd1ygkWsW0Si5Y2Weelp9umrW5i7qLQ6o2VxCw/3SdrNk tly1NK9rsa0dvzbx9H7JEiSmDHi18X5y5kcAmZsBEJzyyP82POdPEHvNoYhthbN6S0Me UD+53k260F3QKdA4nhRdkxWUsHaphrBQqGH1rxZieoY9ush35lJFu1BokoK+4HACN5F+ tevAQlBt1fnVqPW39KPdb7Nop5ciA4mvALwPfIjKU3Jy6oMrlN712uLnLx7HSq/IU5K+ 3K8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=JovBNt8HGEg6bMtmAZeX8X11IYtNqVEJA+UqB9ojTAQ=; b=mLDZYqtexvsILqGlD5ezCNtBvdRa8LN7RT2dz8x+hd/L8ogx0COQskytRMvgtFz2hb mPWHK70HyCoCE1XuLrvPlkcqzZShFQXcmJ17YMPlVjaFdiENhItpsUT8iKKNmP6MbP8Z PB1mfhBeCbqIYjgA6kxQUl9v+qpygbqicUGWZ4q2zxYySEeWmkPg/kyLMnTJKcpw2TIR 0AEFJzASdy1cmGy+/1/AcbGU/1M3eBoeNX8m6tTtyfRzDBJB6KeWouWhY6AU5ClCr33F LKG82zIoprvkjWGo4r64R6mSjjI9WkFQ0B6u4PKlWdOIy5/+fKSZFwa0kMjpfan98unQ bkFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si16365313pjp.74.2019.07.25.06.45.20; Thu, 25 Jul 2019 06:45:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391952AbfGYLeq (ORCPT + 99 others); Thu, 25 Jul 2019 07:34:46 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:22257 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391940AbfGYLep (ORCPT ); Thu, 25 Jul 2019 07:34:45 -0400 X-IronPort-AV: E=Sophos;i="5.64,306,1559512800"; d="scan'208";a="314683334" Received: from c-73-22-29-55.hsd1.il.comcast.net (HELO hadrien) ([73.22.29.55]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 13:34:40 +0200 Date: Thu, 25 Jul 2019 06:34:38 -0500 (CDT) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Joe Perches , cocci@systeme.lip6.fr, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, David Laight Subject: Re: [PATCH 1/2] string: Add stracpy and stracpy_pad mechanisms In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2088688034-1564054482=:2535" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2088688034-1564054482=:2535 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Thu, 25 Jul 2019, Markus Elfring wrote: > > New version. I check for non-use of the return value of strlcpy and > > address some issues that affected the matching of the case where the first > > argument involves a pointer dereference. > > I suggest to take another look at corresponding implementation details > of the shown SmPL script. > > > > \(strscpy\|strlcpy\)(e1.f, e2, i2)@p > > Can the data access operator “->” (arrow) matter also here? What did my email say about isomorphisms? > > > > @@ > > identifier r.i1,r.i2; > > type T; > > @@ > > struct i1 { ... T i1[i2]; ... } > > Will an additional SmPL rule name be helpful for this part? Yes, sorry, it would seem that that is necessary. I will fix and resend the results. > > > > @@ > > ( > > -x = strlcpy > > +stracpy > > (e1.f, e2 > > - , i2 > > )@p; > > ... when != x > > > > | > > I wonder about the deletion of the assignment target. > Should the setting of such a variable be usually preserved? If it is a local variable and never subsequently used, it doesn't seem very useful. julia --8323329-2088688034-1564054482=:2535--