Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 98 16:41:03 +0200
From:      Ben Stuyts <ben@stuyts.nl>
To:        stable@FreeBSD.ORG
Subject:   int overflow in tar
Message-ID:  <199810191441.QAA16098@giskard.stuyts.nl>

next in thread | raw e-mail | index | archive | help
Hello,

The gnu tar program included with FreeBSD has a tiny problem with the option  
--totals. This option prints the total number of bytes written, but  
unfortunately the counter used by tar (tot_written in tar.h) is an int. So it  
overflows after 2^31 bytes have been written, like this:

Backing up nemesis:/home3 at Mon Oct 19 13:27:43 CEST 1998
...
Total bytes written: -1960021504

df /home3 shows:
Filesystem   1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd2s1f    3857506  2307663  1241243    65%    /home3

Should I take this up with the people who maintain gnu tar, or is this  
something we can fix in our source tree?

Could there be more int overflow problems with tar?

Best regards,
Ben

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810191441.QAA16098>