[BusyBox 0004764]: cksum can not handle files larger than 4 gigabyte

bugs at busybox.net bugs at busybox.net
Wed Sep 10 13:53:30 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=4764 
====================================================================== 
Reported By:                timschuerewegen
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   4764
Category:                   Other
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             08-27-2008 11:24 PDT
Last Modified:              09-10-2008 06:53 PDT
====================================================================== 
Summary:                    cksum can not handle files larger than 4 gigabyte
Description: 
cksum can not handle files larger than 4 gigabyte

4.699.979.776 bytes -> cksum returns incorrect checksum
8.511.160.320 bytes -> cksum does not return (100% cpu)
====================================================================== 

---------------------------------------------------------------------- 
 vda - 08-27-08 13:49  
---------------------------------------------------------------------- 
I failed to reproduce infinite looping.
Please attach your .config

Wrong cksum for files > 4 Gb is fixed by attached patch, please confirm.
It works for me. Comparison with coreituls:

# dd if=/dev/zero bs=1M count=9999 | ./busybox cksum
9999+0 records in
9999+0 records out
992689976 10484711424
# dd if=/dev/zero bs=1M count=9999 | /usr/bin/cksum
9999+0 records in
9999+0 records out
992689976 10484711424 

---------------------------------------------------------------------- 
 vda - 09-10-08 06:53  
---------------------------------------------------------------------- 
Fixed in svn. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-27-08 11:24  timschuerewegenNew Issue                                    
08-27-08 11:24  timschuerewegenStatus                   new => assigned     
08-27-08 11:24  timschuerewegenAssigned To               => BusyBox         
08-27-08 13:49  vda            Note Added: 0010794                          
08-27-08 13:52  vda            File Added: 5.patch                          
09-10-08 06:53  vda            Status                   assigned => closed  
09-10-08 06:53  vda            Note Added: 0011334                          
======================================================================




More information about the busybox-cvs mailing list