From owner-freebsd-bugs Wed Aug 4 4:52: 0 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CDF0C15356 for ; Wed, 4 Aug 1999 04:51:58 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA00226; Wed, 4 Aug 1999 04:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from raven.ravenbrook.com (raven.ravenbrook.com [193.112.142.1]) by hub.freebsd.org (Postfix) with ESMTP id 6CD9F15108 for ; Wed, 4 Aug 1999 04:46:06 -0700 (PDT) (envelope-from nb@ravenbrook.com) Received: (from nb@localhost) by raven.ravenbrook.com (8.9.3/8.9.3) id MAA13467; Wed, 4 Aug 1999 12:45:18 +0100 (BST) Message-Id: <199908041145.MAA13467@raven.ravenbrook.com> Date: Wed, 4 Aug 1999 12:45:18 +0100 (BST) From: Nicholas Barnes Reply-To: nb@ravenbrook.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/12959: /usr/bin/wc overflows at 2^32 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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