From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from brown.elm.relay.mailchannels.net (brown.elm.relay.mailchannels.net [23.83.212.23]) by sourceware.org (Postfix) with ESMTPS id 98EC13858416 for ; Fri, 29 Oct 2021 03:15:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 98EC13858416 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 97CCA781741 for ; Fri, 29 Oct 2021 03:15:05 +0000 (UTC) Received: from pdx1-sub0-mail-a53.g.dreamhost.com (100-96-16-69.trex.outbound.svc.cluster.local [100.96.16.69]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D070178178C for ; Fri, 29 Oct 2021 03:15:04 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a53.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.69 (trex/6.4.3); Fri, 29 Oct 2021 03:15:05 +0000 X-MC-Relay: Junk X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Relation-Unite: 098444f755be71f5_1635477305062_4068143537 X-MC-Loop-Signature: 1635477305062:2721454415 X-MC-Ingress-Time: 1635477305062 Received: from pdx1-sub0-mail-a53.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a53.g.dreamhost.com (Postfix) with ESMTP id 866A47F6B4 for ; Thu, 28 Oct 2021 20:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gotplt.org; h=message-id :date:mime-version:subject:to:references:from:in-reply-to :content-type:content-transfer-encoding; s=gotplt.org; bh=fo04oz f6PfUE9LQLzRj9zDrcwkI=; b=P8KK2K57xdXdp+bp/dbcK36TzM4fC2bFHsTHmb wjj8XdAWj+Hxd4q37BUz0K7qdVZ+e2hGL7WwT8++HKrtvcxM6cmIDV/YIQcn7Ql2 7GTuPlb/Lqqfi3DFnwLZien+Mrvxm1L/Dyqw43zHwMprVCUwRk2wPjMmF5/Rlrzl 9B/Fg= Received: from [192.168.1.174] (unknown [1.186.223.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a53.g.dreamhost.com (Postfix) with ESMTPSA id B5F7080671 for ; Thu, 28 Oct 2021 20:15:02 -0700 (PDT) Message-ID: <02900c6d-174e-8f49-1529-c42d17ce7890@gotplt.org> Date: Fri, 29 Oct 2021 08:44:57 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH] malloc-debug: Return 0 on NULL input [BZ #28506] Content-Language: en-US To: libc-alpha@sourceware.org References: <20211029030528.3504087-1-siddhesh@sourceware.org> X-DH-BACKEND: pdx1-sub0-mail-a53 From: Siddhesh Poyarekar In-Reply-To: <20211029030528.3504087-1-siddhesh@sourceware.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3032.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2021 03:15:09 -0000 On 10/29/21 08:35, Siddhesh Poyarekar via Libc-alpha wrote: > Hoist the NULL check for malloc_usable_size into its entry points in > malloc-debug and malloc and assume non-NULL in all callees. This fixes > BZ #28506 > > Signed-off-by: Siddhesh Poyarekar Sorry that was a very lazy submission, I'm sending a v2 with a test and a better subject line. Siddhesh