-
由 Nicolas Pitre 提交于
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: NKees Cook <keescook@chromium.org> Suggested-by: NAdam Borowski <kilobyte@angband.pl> Signed-off-by: NNicolas Pitre <nico@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
d541ae4e