Skip to content
Snippets Groups Projects
Forked from alexandria / alexandria
Source project has a limited visibility.
  • Samuel Freilich's avatar
    a297e86d
    Check that input is a list in proper-list-length · a297e86d
    Samuel Freilich authored
    proper-list-length and related functions claim to signal an error if the
    input is not a proper list, and are careful to safely check that the cdr
    is a cons (with safe-endp). However, they call cdr on the input without
    checking that it is a list in the first place, resulting in memory-error
    when compiled with safety 0 instead of type-error as the tests expect.
    a297e86d
    History
    Check that input is a list in proper-list-length
    Samuel Freilich authored
    proper-list-length and related functions claim to signal an error if the
    input is not a proper list, and are careful to safely check that the cdr
    is a cons (with safe-endp). However, they call cdr on the input without
    checking that it is a list in the first place, resulting in memory-error
    when compiled with safety 0 instead of type-error as the tests expect.