From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19368 invoked by alias); 2 Aug 2002 09:43:40 -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 19352 invoked from network); 2 Aug 2002 09:43:39 -0000 Received: from unknown (HELO myware.mynet) (24.221.190.179) by sources.redhat.com with SMTP; 2 Aug 2002 09:43:39 -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 g729hYTo005173; Fri, 2 Aug 2002 02:43:34 -0700 Message-ID: <3D4A5446.5030204@redhat.com> Date: Fri, 02 Aug 2002 02:43: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: Wolfram Gloger CC: 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00014.txt.bz2 Wolfram Gloger wrote: > Do we already have some system-specific mechanism to detect the rare > overflow case for a 32bit-multiplication without having to perform a > division? It should be possible to have something like ((a | b) > (a * b)) for unsigned values. I'm not 100% sure, though. -- ---------------. ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Red Hat `--' drepper at redhat.com `------------------------