diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-12-14 15:48:27 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-12-14 15:48:27 +0000 |
| commit | 796abca7e281f0d4b7f72f48da4f941e1c8b139c (patch) | |
| tree | 1bf9d9e3d0806d35af8772a39f235186cfd8d251 /crypto/openssl/shlib | |
| parent | c694122f3cfb7d52b882fa79086d49f45a2c7fd2 (diff) | |
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 'crypto/openssl/shlib')
0 files changed, 0 insertions, 0 deletions
