Date: Wed, 4 Aug 1999 12:45:18 +0100 (BST) From: Nicholas Barnes <nb@ravenbrook.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/12959: /usr/bin/wc overflows at 2^32 Message-ID: <199908041145.MAA13467@raven.ravenbrook.com>
next in thread | raw e-mail | index | archive | help
>Number: 12959 >Category: bin >Synopsis: /usr/bin/wc overflows at 2^32 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 4 04:50:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Nicholas Barnes >Release: FreeBSD 2.2.8-RELEASE i386 >Organization: Ravenbrook Limited >Environment: Generic 2.2.8 PC. >Description: /usr/bin/wc overflows at 2^32, so passing it a big file (or stream) gives bogus results. >How-To-Repeat: $ dd if=/dev/zero bs=1m count=4097 | wc 4097+0 records in 4097+0 records out 4296015872 bytes transferred in 614.248991 secs (6993932 bytes/sec) 1048576 $ >Fix: I'm sure a simple hack in the wc sources could make the counters 64-bit. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908041145.MAA13467>