commit | fe179d7fb5c10d8a4e299af06c766f47f2c8d51a | [log] [tgz] |
---|---|---|
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | Thu Dec 31 12:26:46 2020 +0200 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Thu Dec 31 14:33:23 2020 +0100 |
tree | 5c762b7b7158c4692a774708b42af30726540a4d | |
parent | 47d2b3b9c98e1adf231f8143bc01b0046ebd5c9c [diff] |
efi_loader: Add size checks to efi_create_indexed_name() 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@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>