[bug #23996] arithmetic overflow when using -used

2008-09-07 Thread Bertrand Jacquin
Follow-up Comment #4, bug #23996 (project findutils): It is also related with this error : + find /etc -xdev -mmin -20342820 '(' -type f -o -type l ')' -print0 find: arithmetic overflow while converting 20342823 minutes to a number of seconds Thanks ___

Re: [bug #23996] arithmetic overflow when using -used

2008-09-07 Thread Andreas Schwab
"James Youngman" <[EMAIL PROTECTED]> writes: > Well, in the absence of an alternative patch I propose to go with the > one attached to the bug (after correcting the bug number). Except that patch does not fix anything. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Product

[bug #23996] arithmetic overflow when using -used

2008-09-07 Thread James Youngman
Update of bug #23996 (project findutils): Status: Ready For Test => Fixed Open/Closed:Open => Closed Fixed Release:None => 4.5.2 __

Re: [bug #23996] arithmetic overflow when using -used

2008-09-07 Thread James Youngman
On Mon, Sep 1, 2008 at 2:11 AM, James Youngman <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 12:01 AM, Andreas Schwab <[EMAIL PROTECTED]> wrote: >> A good compiler (like gcc 4.3) will optimize this to 0, effectively >> removing the overflow check. Checking for overflow after the fact is >>

Re: [bug #23996] arithmetic overflow when using -used

2008-08-31 Thread James Youngman
On Sun, Aug 24, 2008 at 12:01 AM, Andreas Schwab <[EMAIL PROTECTED]> wrote: > A good compiler (like gcc 4.3) will optimize this to 0, effectively > removing the overflow check. Checking for overflow after the fact is > not possible in C. I'd welcome an alternative patch for the subtraction operat

Re: [bug #23996] arithmetic overflow when using -used

2008-08-24 Thread Andreas Schwab
"James Youngman" <[EMAIL PROTECTED]> writes: > On Sun, Aug 24, 2008 at 8:47 AM, Andreas Schwab <[EMAIL PROTECTED]> wrote: >> "James Youngman" <[EMAIL PROTECTED]> writes: >> >>> See in particular the Texinfo documentation for Autoconf. >> >> Please expand. > > Well there's an entire section on it.

Re: [bug #23996] arithmetic overflow when using -used

2008-08-24 Thread James Youngman
On Sun, Aug 24, 2008 at 8:47 AM, Andreas Schwab <[EMAIL PROTECTED]> wrote: > "James Youngman" <[EMAIL PROTECTED]> writes: > >> Yes, this is undefined behaviour in terms of the ISO C standard. But >> if your comment accurately implies that there are actual systems >> on which this technique fails t

Re: [bug #23996] arithmetic overflow when using -used

2008-08-24 Thread Andreas Schwab
"James Youngman" <[EMAIL PROTECTED]> writes: > Yes, this is undefined behaviour in terms of the ISO C standard. But > if your comment accurately implies that there are actual systems > on which this technique fails to work then we have a widespread > problem; That is correct, many people get tha

Re: [bug #23996] arithmetic overflow when using -used

2008-08-23 Thread James Youngman
On Sun, Aug 24, 2008 at 12:01 AM, Andreas Schwab <[EMAIL PROTECTED]> wrote: > James Youngman <[EMAIL PROTECTED]> writes: > >> + assert (nanosec < nanosec_per_sec); >> + >> + /* Perform the subtraction, and then check for overflow. >> +* On systems where signed aritmetic overflow

Re: [bug #23996] arithmetic overflow when using -used

2008-08-23 Thread Andreas Schwab
James Youngman <[EMAIL PROTECTED]> writes: > + assert (nanosec < nanosec_per_sec); > + > + /* Perform the subtraction, and then check for overflow. > +* On systems where signed aritmetic overflow does not > +* wrap, this check may be unreliable. The C standard > +

[bug #23996] arithmetic overflow when using -used

2008-08-23 Thread James Youngman
Update of bug #23996 (project findutils): Status:Works For Me => Ready For Test ___ Reply to this item at: ___

[bug #23996] arithmetic overflow when using -used

2008-08-23 Thread James Youngman
Follow-up Comment #3, bug #23996 (project findutils): Please let me know if the attached patch fixes your problem. (file #16346) ___ Additional Item Attachment: File name: 44.0001-Fix-savannah-bug-23070-integer-overflow-when-parsi.patch

[bug #23996] arithmetic overflow when using -used

2008-08-08 Thread Andreas Schwab
Follow-up Comment #2, bug #23996 (project findutils): Converting a negative floating point value to an unsigned integer is causing undefined behaviour. checkval = (uintmax_t)origin.tv_sec - seconds; ___ Reply to this item at:

[bug #23996] arithmetic overflow when using -used

2008-08-04 Thread James Youngman
Update of bug #23996 (project findutils): Status:None => Works For Me Assigned to:None => jay ___ Follow-up Comment #1: I cannot reprodu

[bug #23996] arithmetic overflow when using -used

2008-08-04 Thread anonymous
URL: Summary: arithmetic overflow when using -used Project: findutils Submitted by: None Submitted on: Montag 04.08.2008 um 15:11 UTC Category: find Severity: 3 - Norm