mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
The size value should be asserted when it is known.
Reported and tested by: pho Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
09e5f3c4b8
commit
64779280c9
1 changed files with 1 additions and 1 deletions
|
|
@ -1800,7 +1800,7 @@ __elfN(note_threadmd)(void *arg, struct sbuf *sb, size_t *sizep)
|
|||
buf = NULL;
|
||||
size = 0;
|
||||
__elfN(dump_thread)(td, buf, &size);
|
||||
KASSERT(*sizep == size, ("invalid size"));
|
||||
KASSERT(sb == NULL || *sizep == size, ("invalid size"));
|
||||
if (size != 0 && sb != NULL)
|
||||
sbuf_bcat(sb, buf, size);
|
||||
free(buf, M_TEMP);
|
||||
|
|
|
|||
Loading…
Reference in a new issue