]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libvmmapi: Zero out the structure passed to VM_GET_MEMSEG
authorMark Johnston <markj@FreeBSD.org>
Wed, 3 Apr 2024 17:09:43 +0000 (13:09 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 10 Apr 2024 15:17:56 +0000 (11:17 -0400)
commite499fdcb66b9ef3d9fc3c626daaefe909c65a2ab
tree172d044f5c5b4846e0dc63d3b778455fdb21a5a1
parent1855002ddf0b226d92ce5d698bae06305d9a3a4e
libvmmapi: Zero out the structure passed to VM_GET_MEMSEG

Avoid assuming that the kernel zeros the name buffer, it does not do
this for zero-length segments.

MFC after: 2 weeks
Sponsored by: Innovate UK
lib/libvmmapi/vmmapi.c