From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D68AE1F462 for ; Sat, 25 May 2019 13:07:38 +0000 (UTC) Received: from localhost ([127.0.0.1]:41999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUWOa-0005Tf-9G for normalperson@yhbt.net; Sat, 25 May 2019 09:07:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUWOS-0005TL-9L for bug-gnulib@gnu.org; Sat, 25 May 2019 09:07:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUWOQ-0004N5-UH for bug-gnulib@gnu.org; Sat, 25 May 2019 09:07:24 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::7]:36022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUWOQ-0004JG-7L for bug-gnulib@gnu.org; Sat, 25 May 2019 09:07:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1558789638; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=dyzat3HNOWY1AuZOiYPlpfoyav2o/ymxO0p8MBYuwxY=; b=lXnAN6NPximoli841fA2g6J9Iiu/LkNWUtjzdwA3MHABOnqIch8rXwRBqDBLkb6G0W e9yIzjmpOazUdmWK11DBnJd5x2dQ37ZRQ3izT+oxKSv1YfEbJ8aCnCQMfjHvyHZplr67 kXHc2aduIldwMCeiCPK08RqFcDNvdhnafGVQVNVi/Ycxdk5/yF26RzwQyhshmj6OwkV3 GZxElRHm5gQXr8vBAs1O8ghcqlkQCl159u26TZftS4iat/EDeypfVsRgOFnx/3X64eGn Ht2c+tVEW7OBCOFc/3ybcLCWt21XriMoebUFMfzc7fkom2ACRehdq2xtnSNB2MZpzlb0 wxXg== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGaf0y5RW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.18 DYNA|AUTH) with ESMTPSA id m03afev4PD7GqKI (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 25 May 2019 15:07:16 +0200 (CEST) From: Bruno Haible To: Paul Eggert Subject: Re: [PATCH] flexmember: update comment Date: Sat, 25 May 2019 15:07:15 +0200 Message-ID: <4073124.B6oSL8FS4V@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <9874c326-f091-b0cc-1d36-b5a148eb22d9@cs.ucla.edu> References: <20190524220133.31145-1-eggert@cs.ucla.edu> <1981275.GJQJBnkIV0@omega> <9874c326-f091-b0cc-1d36-b5a148eb22d9@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::7 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Paul, > I gave that a shot by installing the attached. Thanks. I found the relevant references now, in [1]. The fact that some people see it not as a property of the malloc() function but as a GCC bug [2] indicates that it should also apply when alloca() is used to allocate the memory. (In this case, a program would not crash when it makes out-of-bounds accesses on the stack, but valgrind may still report accesses to uninitialized memory.) Bruno [1] https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=4c32543a4f05706ca3a8c8d583a5fb35d0e58828 [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661