From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56617 invoked by alias); 6 Oct 2016 20:40:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 56601 invoked by uid 89); 6 Oct 2016 20:40:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: zimbra.cs.ucla.edu Subject: Re: [PATCH] [BZ 20628] make mallinfo saturating To: DJ Delorie References: Cc: carlos@redhat.com, libc-alpha@sourceware.org From: Paul Eggert Message-ID: Date: Thu, 06 Oct 2016 20:40:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-10/txt/msg00149.txt.bz2 On 10/06/2016 09:52 AM, DJ Delorie wrote: > with a 32-bit memory space none of the values will "happen" to cause an > overflow, because we never have more than 2^32 bytes of memory or 2^32 > objects to count. The code should work even when INTERNAL_SIZE_T is 32 bits and size_t is 64 bits. Although perhaps there are other problems with such configurations, we shouldn't make matters worse with this change. For example, mallinfo should work if there are multiple 4-GiB arenas in such a configuration.