mirror of
https://github.com/opnsense/src.git
synced 2026-03-26 04:33:12 -04:00
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 |
||
|---|---|---|
| .. | ||
| ic | ||
| atrtc.c | ||
| fd.c | ||
| fdc.h | ||
| fdreg.h | ||
| joy.c | ||
| kbdio.c | ||
| kbdio.h | ||
| kbdtables.h | ||
| ppc.c | ||
| ppcreg.h | ||
| rtc.h | ||
| sio.c | ||
| sioreg.h | ||
| syscons.c | ||
| syscons.h | ||
| timerreg.h | ||