Re: Math::Pari 'factor' is wrong



[A complimentary Cc of this posting was NOT [per weedlist] sent to
Ilya Zakharevich
<nospam-abuse@xxxxxxxxx>], who wrote in article <dvge29$ch7$1@xxxxxxxxxxxxxxxxxx>:
But anyway, I discovered a bug in unsigned --> PARI conversion.
Sigh...

perl -MMath::Pari -wle "print PARI 3936116531"
-358850765

[Note that this bug is not related to the problems the poster had
due to misunderstanding of Perl arithmetic; but it may move the
threshold where problems appear.]

I released 2.010704 which has this bug fixed. (The test suite is
sensitive to details of propagation from INT to FLOAT in Perl, so may
be wrong on 64-bit platforms. Also, if somebody runs a platform where
$Config{longsize} < $Config{ivsize}, I would like to hear from you
even if test suite succeeds. ;-)

Thanks,
Ilya
.



Relevant Pages

  • Re: Failing unittest Test cases
    ... > the test suite should be runnable and silent at every checkin. ... failing unit test and then 6 months later when an apparently unrelated bug ... This shifts the act of accepting a bug from putting it onto some ... realise that every broken test should have an associated tracker entry), ...
    (comp.lang.python)
  • Re: Testing (was: security issues with forth)
    ... suite writer finds a bug, the programmers of the main product always think ... it's a bug in the test suite, ... *) The title of the lecture was something like "Complex Programs" and ways ...
    (comp.lang.forth)
  • [Full-disclosure] Heap overflow in PeerCast 0.1217
    ... Luigi Auriemma ... Platforms: Windows, plugin for Winamp, Linux and Mac ... Bug ... PeerCast is a multi platform open source software for peer2peer radio ...
    (Full-Disclosure)
  • Heap overflow in PeerCast 0.1217
    ... Luigi Auriemma ... Platforms: Windows, plugin for Winamp, Linux and Mac ... Bug ... PeerCast is a multi platform open source software for peer2peer radio ...
    (Bugtraq)
  • Re: [Lit.] Buffer overruns
    ... but it applies to the design process rather than the ... it would be caught by truly mindless bounds checking. ... So human programmers might not reliably catch this bug. ... On some platforms (those with 'char' ...
    (sci.crypt)