diff options
author | Romain Tartière <romain@FreeBSD.org> | 2025-08-03 05:42:23 +0000 |
---|---|---|
committer | Romain Tartière <romain@FreeBSD.org> | 2025-08-11 04:51:35 +0000 |
commit | 77a0173ca956f9f765920fe8195b951c525671c4 (patch) | |
tree | 60d960ee778c3ff2eba43a06908e8442fe9aa910 /usr.sbin/rtadvd/control_client.h | |
parent | 8bbb1f4ce7a28236bcdce072c2113c43a2a7acd0 (diff) |
vm_page: Fix handling of empty bad memory addresses filestable/13
If a file with bad memory addresses is configured but that file is
empty (0 lines, 0 bytes), when loading it we end up returning an end
pointer that is just _before_ the start of the (empty) file content.
Adjust the code to make it clear what pre-condition are required to set
the *list / *end pointers correctly, and explicitly set them to NULL
when they are not matched.
Reported by: marklmi@yahoo.com
Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D51717
(cherry picked from commit f90940ce6eb71df40538c35a65d77ad3093c679a)
Diffstat (limited to 'usr.sbin/rtadvd/control_client.h')
0 files changed, 0 insertions, 0 deletions