#9826: Memory corruption in polynomial complex_roots() method
-----------------------------------+----------------------------------------
   Reporter:  hlaw                 |       Owner:  somebody                     
         
       Type:  defect               |      Status:  needs_review                 
         
   Priority:  major                |   Milestone:  sage-4.7                     
         
  Component:  commutative algebra  |    Keywords:  complex root, polynomial, 
finite field
     Author:  Johan Bosman         |    Upstream:  N/A                          
         
   Reviewer:                       |      Merged:                               
         
Work_issues:                       |  
-----------------------------------+----------------------------------------
Changes (by newvalueoldvalue):

  * status:  new => needs_review
  * milestone:  sage-5.0 => sage-4.7
  * author:  => Johan Bosman


Comment:

 The bug is caused by a deallocation method trying to clean up all
 coefficients of a polynomial, which segfaults if not all coefficients have
 been initialised, which in turn happens if the init gets wrong input.  The
 attached patch should fix this.

 By the way, it is not clear to me why the milestone was set to sage-5.0.
 I thought that was for Windows-related issues.  Please correct me if I'm
 wrong.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9826#comment:1>
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