Bug#723021: libstring-koremutake-perl: Does not handle large numbers

Axel Beckert abe at debian.org
Sun Sep 15 13:29:44 UTC 2013


Package: libstring-koremutake-perl
Version: 0.30-3
Severity: minor
Tags: upstream patch
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=78653

$ perl -MString::Koremutake -le 'my $a = 65536**4; my $k = String::Koremutake->new; foreach my $b ($a, $a+1, $a+2, $a+3) { print "$b: ".$k->integer_to_koremutake($b); }'
1.84467440737096e+19: bibababababababababa
1.84467440737096e+19: bibababababababababa
1.84467440737096e+19: bibababababababababa
1.84467440737096e+19: bibababababababababa

"use bigint;" suffices to solve the issue:

perl -Mbigint -MString::Koremutake -le 'my $a = 65536**4; my $k = String::Koremutake->new; foreach my $b ($a, $a+1, $a+2, $a+3) { print "$b: ".$k->integer_to_koremutake($b); }'
18446744073709551616: bibababababababababa
18446744073709551617: bibababababababababe
18446744073709551618: bibababababababababi
18446744073709551619: bibababababababababo

Despite this should be fixed upstream (see RT bug report), I think we
can solve this in the package easily and don't have to wait for
upstream.

I'll likely take care of it soon.

(Found via the "Check upstream bug trackers for pkg-perl packages which
have no bug reports and haven't been uploaded for a long time"
initiative which is a derivative of the "review packages with no bugs
today! http://deb.li/nobugs" initiative. ;-)

-- System Information:
Debian Release: 6.0.7
  APT prefers oldstable
  APT policy: (990, 'oldstable'), (500, 'oldstable-updates'), (101, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libstring-koremutake-perl depends on:
ii  liberror-perl          0.17-1            Perl module for error/exception ha
ii  perl                   5.10.1-17squeeze6 Larry Wall's Practical Extraction 

libstring-koremutake-perl recommends no packages.

libstring-koremutake-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list