efi_loader: device_path: check against file path length
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 9 Oct 2019 07:19:52 +0000 (16:19 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 17 Oct 2019 17:19:55 +0000 (19:19 +0200)
commit08c51fff30cca0e834a4819a9d9bb684a919fa7e
treea1959b622c6dfe40c35eb2f4fac14233a0ac684a
parentc83b1bb923421e95e499b22b010d2f9f463c1226
efi_loader: device_path: check against file path length

device_path strcuture has 2 bytes of "length" field, and so
file path length should not exceed this limit, 65535.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path.c