diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2026-01-08 17:41:53 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2026-02-20 02:24:26 +0000 |
| commit | bdf97b8f056fcb842d4a4feb8c36008aa897cb62 (patch) | |
| tree | 2d6db02a6ee25b29a5a255418ee5364cf6982ef5 /sys/fs/cuse/cuse.c | |
| parent | 15c33b64ac2d6a6201cb819da184d0f4028d7632 (diff) | |
ipfilter: Interface name must not extend beyond end of bufferstable/13
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 'sys/fs/cuse/cuse.c')
0 files changed, 0 insertions, 0 deletions
