[Bug 1059783] Re: random output when size_to_str() passed values larger than 10^28
Barry Warsaw
1059783 at bugs.launchpad.net
Tue Oct 2 14:14:08 UTC 2012
This affects me because my hard drive goes to 11.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1059783
Title:
random output when size_to_str() passed values larger than 10^28
Status in “python-apt” package in Ubuntu:
Confirmed
Bug description:
# correct output ("10000 Y" or 10k yottabytes)
$ python2.7 -c 'import apt_pkg; print(apt_pkg.size_to_str(10 ** 28))' |od -xc
0000000 3031 3030 2030 0a59
1 0 0 0 0 Y \n
0000010
# incorrect output: random output!
$ python2.7 -c 'import apt_pkg; print(apt_pkg.size_to_str(10 ** 29))' |od -xc
0000000 75b0 01ff 8020 b74c 000a
260 u 377 001 200 L 267 \n
0000011
Admittedly, it'll probably be a while before this becomes an issue ;-)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1059783/+subscriptions
More information about the foundations-bugs
mailing list