Reproducible with a C++ program linked against libapt-pkg. #include <apt-pkg/strutl.h> #include <stdio.h>
void show(double size) { std::string out = SizeToStr(size); printf("SizeToStr(%f) = '%s'\n", size, out.c_str()); } int main() { show(100000000000000000000000000000.0L); return 0; } ** Package changed: python-apt (Ubuntu) => apt (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1059783 Title: random output when size_to_str() passed values larger than 10^28 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1059783/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs