bugfindutils - Bugs: bug #23996, arithmetic overflow when using...

 
 

bug #23996: arithmetic overflow when using -used

Submitted by:  None
Submitted on:  Mon 04 Aug 2008 03:11:37 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Lars BeckerOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.4.0
Fixed Release: 4.5.2

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 07 Sep 2008 06:50:36 PM UTC, comment #4:

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

Bertrand Jacquin <beber>
Sat 23 Aug 2008 08:55:16 PM UTC, comment #3:

Please let me know if the attached patch fixes your problem.

(file #16346)

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 08 Aug 2008 05:15:22 PM UTC, comment #2:

Converting a negative floating point value to an unsigned integer is causing undefined behaviour.

checkval = (uintmax_t)origin.tv_sec - seconds;

Andreas Schwab <schwab>
Mon 04 Aug 2008 09:01:09 PM UTC, comment #1:

I cannot reproduce this on my own system, using a 32-bit (for 4.4.0) or a 64-bit binary (either 4.4.0 or 4.5.x).

Could you build findutils yourself on your system to see if you can reproduce the problem?

Thanks.

James Youngman <jay>
Project AdministratorIn charge of this item.
Mon 04 Aug 2008 03:11:37 PM UTC, original submission:

Using find with the parameter -used results produces an arithmetic overflow. Try using "find /tmp -used 3". find reports: "find: arithmetic overflow while converting 3 days to a number of seconds"

The error occurs with find 4.4.0 on OpenSuse 11.0. I have not tested if this error occurs with a self build version.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by beber (Posted a comment)
  • -unavailable- added by schwab (Posted a comment)
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 07 Sep 2008 03:50:02 PM UTCjayStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.5.2
    Sat 23 Aug 2008 08:56:23 PM UTCjayStatusWorks For Me=>Ready For Test
    Sat 23 Aug 2008 08:55:16 PM UTCjayAttached File-=>Added 44.0001-Fix-savannah-bug-23070-integer-overflow-when-parsi.patch, #16346
    Mon 04 Aug 2008 09:01:09 PM UTCjayStatusNone=>Works For Me
      Assigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1