u-boot/lib/efi_loader
Heinrich Schuchardt a9080e600c efi_loader: avoid buffer overrun in efi_var_restore()
The value of buf->length comes from outside U-Boot and may be incorrect.
We must avoid to overrun our internal buffer for excessive values.

If buf->length is shorter than the variable file header, the variable
file is invalid.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2026-03-14 08:14:01 +01:00
..
2025-05-25 11:27:18 +02:00
2025-04-11 13:25:27 +02:00
2024-01-16 17:05:29 -05:00
2024-11-09 09:59:41 +01:00