freebsd-nq/sys/dev/syscons
Kazutaka YOKOTA 38c6184fd5 Reject unreasonable values passed to CONS_HISTORY ioctl. It did not
check the value and caused kernel panic when a large value was given.

- Move the configuration option SC_HISTORY_SIZE from syscons.h to
syscons.c.
- Define the maximum total number of history lines of all consoles.
It is SC_HISTORY_SIZE*MAXCONS or 1000*MAXCONS; whichever is larger.
CONS_HISTORY will allow the user to set the history size up to
SC_HISTORY_SIZE unconditionally (or the current height of the console
if it is larger than SC_HISTORY_SIZE). If the user requests a larger
buffer, it will be granted only if the total number of all allocated
history lines and the requested number of lines won't exceed the maximum.
- Don't free the previous history buffer and leave the history buffer
pointer holding a invalid pointer. Set the pointer to NULL first, then
free the buffer.

PR: bin/4592
1997-10-23 03:23:50 +00:00
..
blank Make the blank screen saver work with MDA and CGA. The fade and green 1997-10-04 04:24:18 +00:00
daemon Incorporated lots of fixes and suggestions from Bruce and changes to 1997-07-15 14:49:39 +00:00
fade Make the blank screen saver work with MDA and CGA. The fade and green 1997-10-04 04:24:18 +00:00
green Make the blank screen saver work with MDA and CGA. The fade and green 1997-10-04 04:24:18 +00:00
snake Incorporated lots of fixes and suggestions from Bruce and changes to 1997-07-15 14:49:39 +00:00
star Incorporated lots of fixes and suggestions from Bruce and changes to 1997-07-15 14:49:39 +00:00
syscons.c Reject unreasonable values passed to CONS_HISTORY ioctl. It did not 1997-10-23 03:23:50 +00:00
syscons.h Reject unreasonable values passed to CONS_HISTORY ioctl. It did not 1997-10-23 03:23:50 +00:00