#199 Assertion in GF2mat_sparse_alist::read() erroneous

SVN
closed
5
2012-09-15
2011-09-13
No

The alist format uses one-based indexing as MATLAB. If the alist file is by any chance corrupted, the wrong assert causes 0s to be read and thus accesses to position -1 in the resulting sparse matrix, leading in many cases to a segmentation fault.

See attached patch for a fast fix.

Discussion

  • Laurent Schmalen

    Patch fixing erroneous assert in reading routine of alist files

     
  • Erik G. Larsson

    Erik G. Larsson - 2011-09-15

    Fixed in SVN. Thank you for providing the patch.

     

Log in to post a comment.