From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22240 invoked by alias); 11 Jun 2007 12:52:12 -0000 Received: (qmail 22232 invoked by uid 22791); 11 Jun 2007 12:52:11 -0000 X-Spam-Check-By: sourceware.org Received: from s200aog11.obsmtp.com (HELO s200aog11.obsmtp.com) (207.126.144.125) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 11 Jun 2007 12:52:05 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob011.postini.com ([207.126.147.11]) with SMTP; Mon, 11 Jun 2007 12:52:02 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 657B6DAEC for ; Mon, 11 Jun 2007 12:52:02 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 286B44C1FF for ; Mon, 11 Jun 2007 12:52:02 +0000 (GMT) Received: from [164.129.15.13] (bri1043.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.7.5a-GA) with ESMTP id CIZ62179 (AUTH stubbsa); Mon, 11 Jun 2007 13:51:59 +0100 (BST) Message-ID: <466D456F.5070406@st.com> Date: Mon, 11 Jun 2007 12:52:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Denis PILAT Cc: gdb-patches Subject: Re: [rfc] Overflow in transfer-rate References: <466D3A7D.9030101@st.com> In-Reply-To: <466D3A7D.9030101@st.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00145.txt.bz2 Denis PILAT wrote: > In symfile.c/print_transfer_performance (), an overflow can occure when > data_count (see below) is a large number. > > I propose either the following 1st patch, or to pass to "%llu"into the > ui_out_field_fmt functino call, see the next patch proposal. I might also be worth taking a look at this proposal from some time ago http://www.cygwin.com/ml/gdb-patches/2006-10/msg00184.html