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

 
 

bug #23996: arithmetic overflow when using -used

Submitter:  None
Submitted:  Mon 04 Aug 2008 03:11:37 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Lars Becker Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.0
Fixed Release:  4.5.2
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group administrator
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 Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-09-07 jay StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.5.2
    2008-08-23 jay StatusWorks For Me Ready For Test
    2008-08-23 jay Attached File- Added 44.0001-Fix-savannah-bug-23070-integer-overflow-when-parsi.patch, #16346
    2008-08-04 jay StatusNone Works For Me
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code