diff options
| author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2024-09-11 14:43:43 +0000 |
|---|---|---|
| committer | Gordon Tetlow <gordon@FreeBSD.org> | 2024-09-19 13:12:37 +0000 |
| commit | 417e81a40091f7744c55139bfcad093c75426229 (patch) | |
| tree | bb76d7a200b47fa1932ec7654a94b2efdc9136fb | |
| parent | e7a790dc3ffe1f2aa2b40b0d21a6f80be9915679 (diff) | |
| -rw-r--r-- | sys/contrib/libnv/nvlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/libnv/nvlist.c b/sys/contrib/libnv/nvlist.c index e399d610a7ce..6934da0df00a 100644 --- a/sys/contrib/libnv/nvlist.c +++ b/sys/contrib/libnv/nvlist.c @@ -1029,7 +1029,7 @@ static bool nvlist_check_header(struct nvlist_header *nvlhdrp) { - if (nvlhdrp->nvlh_size > SIZE_MAX - sizeof(nvlhdrp)) { + if (nvlhdrp->nvlh_size > SIZE_MAX - sizeof(*nvlhdrp)) { ERRNO_SET(EINVAL); return (false); } |
