Messages in this thread | | | Date | Sat, 21 Jul 2018 09:20:43 +0200 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH v2 1/3] vt: avoid a VLA in the unicode screen scroll function |
| |
On Thu, Jul 19, 2018 at 12:05:25AM -0400, Nicolas Pitre wrote: > > 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>
I've now applied this v2 of the patch, thanks for this.
greg k-h
| |