diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-13 21:03:06 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | 8071d7eaa8f08b00b86bd10179993ccc58c053b7 (patch) | |
| tree | 404e85cd635c888d770dd9e1bace3c09342e089f /util | |
| parent | 74077f99033a25127ac182e9464cc03488aeeca7 (diff) | |
util/nvmutil: cast rnum pointer check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 9fc49ad4..b1d24bdc 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1744,7 +1744,7 @@ io_args(int fd, void *mem, size_t nrw, goto err_io_args; if (mem != (void *)pad - && mem != rnum + && mem != (void *)rnum && (mem < (void *)buf || mem >= (void *)(buf + GBE_FILE_SIZE))) goto err_io_args; |
