aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/id/id.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2026-01-08 17:41:53 +0000
committerCy Schubert <cy@FreeBSD.org>2026-02-20 02:24:08 +0000
commit60043137c50c635a5ad25428d1d99d22fcd4d226 (patch)
tree77382526e48db18cf7f281c77ceda1f247201eb0 /usr.bin/id/id.c
parent53e1019c8494e560a4ea121ef9e0c4b3ff4ac016 (diff)
ipfilter: Interface name must not extend beyond end of bufferstable/14
sifpidx (an interface name) cannot extend beyond the end of the fr_names buffer. We do the validation for fr_sifpidx here because it is a union that contains an offset only when fr_sifpidx points to an interface name, an offset into fr_names. The union is an offset into fr_names in this case only. interr_tbl now becomes a static variable outside a function to facilitate its use by two functions within fil.c Note that sifpidx is only used in ipf_sync() which implments ipf -y. Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> MFC after: 1 week (cherry picked from commit 47fb51847fdea3f1cce841b5f2bbbcd6f8a04ee0)
Diffstat (limited to 'usr.bin/id/id.c')
0 files changed, 0 insertions, 0 deletions