[PATCH] efi_loader: Add size checks to efi_create_indexed_name()

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Dec 31 13:04:32 CET 2020


On 12/31/20 11:26 AM, Ilias Apalodimas wrote:
> Although the function description states the caller must provide a
> sufficient buffer, it's better to have in function checks that the
> destination buffer can hold the intended value.
>
> So let's add an extra argument with the buffer size and check that
> before doing any copying.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>


More information about the U-Boot mailing list