diff options
| author | Heinrich Schuchardt <[email protected]> | 2026-03-11 18:30:33 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-03-14 08:14:01 +0100 |
| commit | a9080e600c214bbff331f95136aa26e7cfbe3375 (patch) | |
| tree | b7ad730b1fe85382aaa461c149ac4d152e1c1032 /include/efi_variable.h | |
| parent | 41be502c1c4ac5d2732e9ae278480b9c73405e49 (diff) | |
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 <[email protected]>
Tested-by: Michal Simek <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include/efi_variable.h')
0 files changed, 0 insertions, 0 deletions
