aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/tests/secure/fortify_strings_test.c
diff options
context:
space:
mode:
authorR. Christian McDonald <rcm@FreeBSD.org>2026-09-29 01:21:56 +0000
committerR. Christian McDonald <rcm@FreeBSD.org>2026-09-29 11:00:50 +0000
commit806adba81f3d808994b0cec955c38ef1a089e739 (patch)
treef82834dd010304527b9fcef80782bc62571594b7 /lib/libc/tests/secure/fortify_strings_test.c
parent0dac2c53270193d99b1bd648966132b1f6d523ac (diff)
libpfctl: decode PFR_A_AF into a u8HEADmain
The kernel sends PFR_A_AF as a u32, although it is documented and parsed as a u8, and libpfctl decoded it with snl_attr_get_uint32() straight into the u8 pfra_af. That overwrote pfra_net, pfra_not and pfra_fback, and left pfra_af zero on big-endian hosts. Decode it via a temporary, and accept a u8 as well, so that the kernel can be corrected later without breaking libpfctl. Reviewed by: kp Approved by: kp (mentor) Fixes: f27e44e2e3b5 ("pf: convert DIOCRGETADDRS to netlink") Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D60110
Diffstat (limited to 'lib/libc/tests/secure/fortify_strings_test.c')
0 files changed, 0 insertions, 0 deletions