#16151: Making BasisExchangeMatroid fool-proof with user input sanity checks
-------------------------+-------------------------------------------------
   Reporter:  Jayant     |            Owner:  Jayant Apte
       Type:  defect     |           Status:  new
   Priority:  minor      |        Milestone:  sage-6.2
  Component:  matroid    |         Keywords:
  theory                 |          Authors:  Jayant Apte
  Merged in:             |  Report Upstream:  Reported upstream. Developers
  Reviewers:             |  acknowledge bug.
Work issues:             |           Branch:
     Commit:             |     Dependencies:
   Stopgaps:             |
-------------------------+-------------------------------------------------
 Following creates a segfault:
 {{{
 from sage.matroids.advanced import *
 M = BasisMatroid(matroids.named_matroids.Vamos())
 len(M.independent_r_sets(9))
 }}}
 This is because of wrong user input (vamos matroid has only 8 elements, so
 there is no independent set of size bigger than 8). This ticket is to add
 sanity checks on user input to filter out such cases and raise appropriate
 exceptions.

--
Ticket URL: <http://trac.sagemath.org/ticket/16151>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to