From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id C66A3209F1 for ; Thu, 6 Apr 2017 08:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755909AbdDFI5i (ORCPT ); Thu, 6 Apr 2017 04:57:38 -0400 Received: from mout.gmx.net ([212.227.17.21]:51071 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755793AbdDFI5d (ORCPT ); Thu, 6 Apr 2017 04:57:33 -0400 Received: from virtualbox ([37.201.193.73]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lg6op-1cKZff2iXT-00pbU8; Thu, 06 Apr 2017 10:57:28 +0200 Date: Thu, 6 Apr 2017 10:57:26 +0200 (CEST) From: Johannes Schindelin X-X-Sender: virtualbox@virtualbox To: =?UTF-8?Q?Martin_Li=C5=A1ka?= cc: git@vger.kernel.org Subject: Re: [PATCH 1/2] Fix nonnull errors reported by UBSAN with GCC 7. In-Reply-To: <295981e7-d2e9-d3db-e32d-8dd80ca47136@suse.cz> Message-ID: References: <295981e7-d2e9-d3db-e32d-8dd80ca47136@suse.cz> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-2108696474-1491469048=:4268" X-Provags-ID: V03:K0:4/YR5eazl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ender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@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-2108696474-1491469048=:4268 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Hi Martin, On Thu, 6 Apr 2017, Martin Li=C5=A1ka wrote: > Following patch fixes issues that can be seen with -fsanitize=3Dundefined > on GCC 7. The commit message says: =09Memory functions like memmove and memcpy should not be called =09with an argument equal to NULL. But the patch is not about the pointer arguments, it is about the size argument. So I would suggest to say =09Memory functions like memmove and memcpy should only be called =09with positive sizes. Ciao, Johannes --8323329-2108696474-1491469048=:4268--