mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +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)
|
if (((size_t)off + nrw) < (size_t)off)
|
||||||
goto err_io_args;
|
goto err_io_args;
|
||||||
|
|
||||||
|
if (rw_type > IO_PWRITE)
|
||||||
|
goto err_io_args;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_io_args:
|
err_io_args:
|
||||||
|
|||||||
Reference in New Issue
Block a user