Fix `bytevector->{sint,uint}-list' for SIZE > bytevector length.
commit174bafef265145bb886b57c7381be4fdffee6ca4
authorLudovic Courtès <ludo@gnu.org>
Mon, 6 Apr 2009 22:15:07 +0000 (7 00:15 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 Apr 2009 22:15:07 +0000 (7 00:15 +0200)
tree4766b358a329160aa97d8d71a22fc17593677ab6
parentc92c2f38537891928628230e1c9fc5922a37b0ed
Fix `bytevector->{sint,uint}-list' for SIZE > bytevector length.

* src/bytevector.c (INTEGERS_TO_LIST): Raise an exception if C_LEN <
  C_SIZE.

* tests/bytevector.test ("2.4 Operations on Integers of Arbitrary
  Size")["bytevector->sint-list [out-of-range]"]: New test.
NEWS
src/bytevector.c
tests/bytevector.test