diff options
author | 2018-07-19 00:05:25 -0400 | |
---|---|---|
committer | 2018-07-21 09:19:46 +0200 | |
commit | d541ae4e76ae35b76490206ef946a9124b993e32 (patch) | |
tree | 5c04d74c91af1d1a312030921042f433a7e8942a /include/linux/console_struct.h | |
parent | vt: add /dev/vcsu* to devices.txt (diff) | |
download | wireguard-linux-d541ae4e76ae35b76490206ef946a9124b993e32.tar.xz wireguard-linux-d541ae4e76ae35b76490206ef946a9124b993e32.zip |
vt: avoid a VLA in the unicode screen scroll function
The nr argument is typically small: most often nr == 1. However this
could be abused with a very large explicit scroll in a resized screen.
Make the code scroll lines by performing an array rotation operation to
avoid the need for a large temporary space.
Requested-by: Kees Cook <keescook@chromium.org>
Suggested-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions