#11611: Equal PARI integers have different hashes
-----------------------------+----------------------------------------------
   Reporter:  jdemeyer       |          Owner:  jdemeyer                    
       Type:  defect         |         Status:  positive_review             
   Priority:  critical       |      Milestone:  sage-4.7.2                  
  Component:  number fields  |       Keywords:  pari cgetg integer ideal hnf
Work_issues:                 |       Upstream:  N/A                         
   Reviewer:                 |         Author:  Jeroen Demeyer              
     Merged:                 |   Dependencies:                              
-----------------------------+----------------------------------------------

Comment(by jdemeyer):

 The code which is purely about the bug fix is in lines 9005--9007 of the
 new `sage/libs/pari/gen.pyx`.  The problem is that `z[1]` was never
 properly initialized and might contain some random garbage which was on
 the PARI stack before.

 I also rewrote some code which was similar in spirit to the buggy code,
 even though I could not obviously produce bugs from that code.  Then I
 also did some general cleanup, like getting rid of `__set_lvalue__()`.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11611#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to