mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
nvmutil: add missing check to io_args
accidentally removed this in a rebase Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -2150,6 +2150,9 @@ io_args(int fd, void *mem, size_t nrw,
|
||||
if (((size_t)off + nrw) < (size_t)off)
|
||||
goto err_io_args;
|
||||
|
||||
if (rw_type > IO_PWRITE)
|
||||
goto err_io_args;
|
||||
|
||||
return 0;
|
||||
|
||||
err_io_args:
|
||||
|
||||
Reference in New Issue
Block a user