Skip to content
  • rtoy's avatar
    SUBSEQ was sometimes crashing lisp when the end index was less than · 874f052d
    rtoy authored
    the start.  This was due to one of two things:  The result sequence
    was created with a negative length, creating invalid objects, or
    accessing the invalid object would cause a segfault.
    
    code/seq.lisp:
    o Declare the type of LENGTH in MAKE-SEQUENCE-OF-TYPE better.  It's
      not a fixnum, but an index (non-negative fixnum).  This should catch
      any mistakes where we try to create sequences of negative length.
    o Explicitly catch invalid START and END indices in VECTOR-SUBSEQ* and
      LIST-SUBSEQ* and signal an error
    
    general-info/release-20c.txt:
    o Document bugfix.
    874f052d