Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3369967ybt; Tue, 23 Jun 2020 00:05:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfTc73nxVuCbpo+dG4JOJL7QjAlVits7f+LB9ct92PQX4Hvjt+Og0118TFwFTIDa1dhk0w X-Received: by 2002:a17:906:3483:: with SMTP id g3mr18645211ejb.373.1592895942335; Tue, 23 Jun 2020 00:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592895942; cv=none; d=google.com; s=arc-20160816; b=nQctEUaA4EoF585N8/PiDGG4+Kk1d87asKLEhNjvCzSQ3c8xz0yVPalwhIhYgUhxUL JPlvGvTBl1ek85J56IOL2DvZpuI3fMHVnE4Uyn04D8rdmyFVw/hJPO9lFpEmCKy+OemH HcKSfSLmR3sixZFg7SXW8SeNUBYtEsMrq+dsWWb2it/3EbdnacYLMTdsOt8lT2SpxVKK DJNkPRNIVLO7xexTD2IeGDFl8UCBMN/K7kOHk3yN57IEmxr+wzRRK5bsOw1+0JijDCC+ BqQXi0hneEUNHxP4seldc2uxQeVlLvvw7nOtE5jFWGZznFjo4YF//bLRtARo+3ddaBV4 pmCg== 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=StCxp/ox/YYQ2p9V1tO+KAhoNUSOv9/JhvDnx8ijtAc=; b=pnGV+LHisIL/E0yZ4QFx59YcBFdQiXTcP8M7mpcUccEydr8mlnFoFQ9Z1ajvSv8TL3 hppXx5C+pfIXYi+Tmxn9MyMp/6PwrVnPCB01CZ3qj6Itya2/o68xsXcoQ1yWsCxwHMGg UQ7WV/EfDtr+k+4evGc3Rmlq4I13vf5CdjpQit5zldwpLXORuW4+DLCv0DuHey35sofj 1QwgGqBO5kBbXAdBL96Yy4YT+3Ah3o0dHj/7AdWZ8A0ZMgLPvN0c4rbeKnYwJAr9x9Qa VkQ0rZHu3A+HM0rXdBcWtcs60Qp/0e22cEJXFpwohEhOv2MfFrGq5HaQPeFzehYXaDxf P+yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si10475282eje.542.2020.06.23.00.05.19; Tue, 23 Jun 2020 00:05:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731291AbgFWHCe (ORCPT + 99 others); Tue, 23 Jun 2020 03:02:34 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:34772 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730830AbgFWHCe (ORCPT ); Tue, 23 Jun 2020 03:02:34 -0400 X-IronPort-AV: E=Sophos;i="5.75,270,1589234400"; d="scan'208";a="456156865" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 09:02:31 +0200 Date: Tue, 23 Jun 2020 09:02:31 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Denis Efremov , Coccinelle , Gilles Muller , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook Subject: Re: [PATCH v4] coccinelle: misc: add array_size_dup script to detect missed overflow checks In-Reply-To: <4014118b-90a6-68c5-048f-32485fa3e852@web.de> Message-ID: References: <4014118b-90a6-68c5-048f-32485fa3e852@web.de> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1108794673-1592895751=:2367" 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-1108794673-1592895751=:2367 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT I don't agree with any of these comments. julia On Tue, 23 Jun 2020, Markus Elfring wrote: > > Changes in v2: > … > > - assignment operator used > > I prefer the distinction for the application of corresponding metavariables. > > > > Changes in v3: > … > > - \(&E1\|&E2\) changed to &\(E1\|E2\) > > Would it be more helpful to mention the movement of the ampersand > before SmPL disjunctions? > > > … > >+/// Three types of patterns for these functions: > > Will another adjustment be needed according to your information “duplicates warning removed”? > > > … > > +virtual context > > +virtual report > > +virtual org > > Can the following SmPL code variant ever become more attractive? > > +virtual context, report, org > > > … > > +expression subE1 <= as.E1; > > +expression subE2 <= as.E2; > > +expression as.E1, as.E2, E3; > > How do you think about the following SmPL code variant? > > +expression subE1 <= as.E1, > + subE2 <= as.E2, > + as.E1, as.E2, E3; > > > … > > +msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) > > +coccilib.report.print_report(p1[0], msg) > > Please omit the extra Python variable “msg” for the passing of such simple message objects. > > What does hinder you to take the proposed script variants better into account? > > Regards, > Markus > --8323329-1108794673-1592895751=:2367--