https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194250

            Bug ID: 194250
           Summary: c_size() function parses terabyte sized files
                    incorrectly due to incorrect scale factor
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: turings...@yahoo.com

In usr.bin/find/function.c in c_size() function, when parsing 
terabyte sized files, it incorrectly thinks 1 TB is 64  GB.

case 'T':                       /* terabytes 1<<40 */

scale = 0x1000000000LL;

...

0x1000000000 bytes = 64GB

The correct code should read:

...

case 'T':                       /* terabytes 1<<40 */

scale = 0x10000000000LL;

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to