mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: validate ARG_PART and ARG_NOPART
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -414,6 +414,12 @@ sanitize_command_index(size_t c)
|
||||
|
||||
if (command[c].arg_part > 1)
|
||||
err(ECANCELED, "cmd index %zu: arg_part above 1", c);
|
||||
|
||||
if (ARG_NOPART)
|
||||
err(ECANCELED, "ARG_NOPART is non-zero");
|
||||
|
||||
if (ARG_PART != 1)
|
||||
err(ECANCELED, "ARG_PART is a value other than one");
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user