Read no more than the buffer length when a length of #f is passed in

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>
Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Update news
Add CVE-2013-4385 identifier to NEWS
Add HAVE_POSIX_POLL to cygwin Makefile.

Pedro Melendez tested and verified this works on Windows.
After this, select() is only used on Mingw anymore

(cherry picked from commit 2d08e9657caa67c11e8903ac802f10922ab32a3d)
Update NEWS
A few fixes for file-creation-mode.

- Don't pass #f to C_umask as if it were a fixnum
- Ensure it always returns the old value even if no new value is set
- Document the fact that MODE is optional

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
(cherry picked from commit 27e912e0aad2824bb36b689ceba57112a5bbe703)
Fix CHICKEN_initialize's call to C_randomize (which expects a boxed fixnum)

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
(cherry picked from commit 555856c4d8f9b6dec14a14f52a1252311fd27421)

Conflicts:
	runtime.c
Fix several subtle problems in the reader caused by calling char=? on EOF

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
(cherry picked from commit 37355ff0d92c553d8dd29cfa24f1033538b423cc)
Cherry-pick assert-error from 9247cec393084 to data-structures-tests.scm

Also pull in topological-sort tests, which are fine -- however, we
comment out the cycle detection test, as we did not pull that fix in.
Fix data corruption problem in list->queue and add a set of tests for queues.

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>
(cherry picked from commit 5bf6208bd5e1110bf55c8cd161079d7dad693579)

Conflicts:
	tests/data-structures-tests.scm

Note: This depends on assert-error introduced in 9247cec393084.
Fix read-string! behaviour after peeking at EOF & add regression test.

Slot 6 does not store the peeked character (anymore?), but whether the
port is in an EOF state.  Peeking goes via ungetc on FILE * ports, and
via custom logic in other port types.

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
(cherry picked from commit df10e8ae06e98d27f045463949b8acaef765c6e7)
Update news
Version 4.8.0.5