]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: avoid using unitialized values as console size
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 16 May 2018 16:17:38 +0000 (18:17 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 3 Jun 2018 13:27:20 +0000 (15:27 +0200)
commitd56a6ed681f46eeea7d7d25e06ddb2132f457193
tree513d7ee0481ea15d3f70d96e4ecb7c0e8cd52959
parent52873db6aa35368b27f6e324fe08ce6adc7108fa
efi_loader: avoid using unitialized values as console size

If a request for the console size would be answered with a response
with less then three values, uninitialized stack memory would be
copied to the number of rows and columns of the terminal.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_console.c