]> git.sur5r.net Git - u-boot/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)
commit62217295d7b0377f5eeee0e9716cc0443e4ce1ba
tree513d7ee0481ea15d3f70d96e4ecb7c0e8cd52959
parentd799c67ad32e5bb1a7ae098611c2990f80099309
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