Skip to content
Snippets Groups Projects
Commit 874f052d authored by rtoy's avatar rtoy
Browse files

SUBSEQ was sometimes crashing lisp when the end index was less than

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.
parent 3871cbd7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment