From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23571 invoked by alias); 2 Aug 2002 09:50:51 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 23553 invoked from network); 2 Aug 2002 09:50:50 -0000 Received: from unknown (HELO myware.mynet) (24.221.190.179) by sources.redhat.com with SMTP; 2 Aug 2002 09:50:50 -0000 Received: from redhat.com (myware.mynet [192.168.7.70]) (authenticated bits=0) by myware.mynet (8.12.3/8.12.3) with ESMTP id g729oeTo005188; Fri, 2 Aug 2002 02:50:40 -0700 Message-ID: <3D4A55F0.5020007@redhat.com> Date: Fri, 02 Aug 2002 02:50:00 -0000 From: Ulrich Drepper User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020726 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Drepper CC: Wolfram Gloger , libc-hacker@sources.redhat.com Subject: Re: [PATCH] xdr_array and calloc security fix References: <20020802004635.Y20867@sunsite.ms.mff.cuni.cz> <20020802092945.24679.qmail@md.dent.med.uni-muenchen.de> <3D4A5446.5030204@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00015.txt.bz2 Ulrich Drepper wrote: > It should be possible to have something like > > ((a | b) > (a * b)) > > for unsigned values. I'm not 100% sure, though. I mean, this is an approximation which lets us avoid the division in many (most?) cases. -- ---------------. ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Red Hat `--' drepper at redhat.com `------------------------