freebsd-skq/sys/isa
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
..
ic Enable the FIFO on enhanced floppy controllers. This reduces the 1997-09-17 20:16:17 +00:00
atrtc.c General cleanup of the sub-system locking macros. 1997-09-01 07:45:37 +00:00
fd.c Introduce a device flags value of 0x1 to always pretend a 1.44 MB 1997-10-19 13:12:02 +00:00
fdc.h Enable the FIFO on enhanced floppy controllers. This reduces the 1997-09-17 20:16:17 +00:00
fdreg.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
joy.c Removed unused #includes. 1997-07-20 14:10:18 +00:00
kbdio.c Removed unused #includes. 1997-07-20 14:10:18 +00:00
kbdio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
kbdtables.h Back out my LALT -> META change until we figure out a way to make it 1997-10-12 19:57:49 +00:00
ppc.c Removed unused #includes. 1997-09-01 02:08:42 +00:00
ppcreg.h Minor ppc_data structure tweak. 1997-08-16 14:07:26 +00:00
rtc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
sio.c Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
sioreg.h Bring back CONSPEED as a last-ditch default if you can't change the speed 1997-06-04 16:25:15 +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
timerreg.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00