efi_loader: validate device path length in boot manager
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 23 Aug 2020 08:59:17 +0000 (10:59 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 24 Aug 2020 14:37:53 +0000 (16:37 +0200)
commit15d8f008dc577bbef6ad98494c28553558941420
treeac0e32cc27ea556382bd1b5f90bc611ead1d808c
parent5bba77e48be801176a55223b1f76bc44e8e1b3cb
efi_loader: validate device path length in boot manager

Bootxxxx variables are provided by the user and therefore cannot be
trusted. We have to validate them before usage.

A device path provided by a Bootxxxx variable must have an end node within
the indicated device path length.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_bootmgr.c