aboutsummaryrefslogtreecommitdiff
path: root/contrib/file/magic/Magdir/c64
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-12-14 15:48:27 +0000
committerMark Johnston <markj@FreeBSD.org>2025-12-14 15:48:27 +0000
commit796abca7e281f0d4b7f72f48da4f941e1c8b139c (patch)
tree1bf9d9e3d0806d35af8772a39f235186cfd8d251 /contrib/file/magic/Magdir/c64
parentc694122f3cfb7d52b882fa79086d49f45a2c7fd2 (diff)
pfsync: Avoid zeroing the state export unionHEADmain
pfsync_state_export() takes a pointer to a union that is in reality a pointer to one of the three state formats (1301, 1400, 1500), and zeros the union. The three formats do not have the same size, so zeroing is wrong when the format isn't that which has the largest size. Refactor a bit so that the zeroing happens at the layer where we know which format we're dealing with. Reported by: CHERI Reviewed by: kp MFC after: 1 week Sponsored by: CHERI Research Centre (EPSRC grant UKRI3001) Differential Revision: https://reviews.freebsd.org/D54163
Diffstat (limited to 'contrib/file/magic/Magdir/c64')
0 files changed, 0 insertions, 0 deletions