OPNsense - FreeBSD source
Find a file
Mark Johnston 0eb81bd89d pfsync: Avoid zeroing the state export union
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

(cherry picked from commit 796abca7e281f0d4b7f72f48da4f941e1c8b139c)
2025-12-29 14:31:30 +00:00
.cirrus-ci
.github CI: Change timeout values 2025-12-18 09:31:29 -08:00
bin
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib Import latest mtree from NetBSD 2025-12-27 16:28:01 +00:00
crypto
etc unionfs: Support renaming symbolic links 2025-12-24 08:21:01 +01:00
gnu
include libc/string: add strdupa(3) and strndupa(3) 2025-12-16 06:57:01 +02:00
kerberos5
krb5 krb5: Add missing symbol 2025-12-12 18:19:40 -08:00
lib Remove debug crutch I accidentally left in 2025-12-29 03:09:28 +01:00
libexec noshutdown: Fix startup order 2025-12-13 22:01:14 +00:00
release release: Include comms/usbmuxd to DVD to ensure ipheth(4) works 2025-12-08 08:49:09 +08:00
rescue
sbin fsck_msdosfs: avoid warnings about too-long initializer strings 2025-12-29 13:19:10 +01:00
secure
share bsd-family-tree: add FreeBSD 15.0 2025-12-24 13:18:22 -05:00
stand loader.efi.8: Minor formatting nits 2025-12-18 17:52:11 -05:00
sys pfsync: Avoid zeroing the state export union 2025-12-29 14:31:30 +00:00
targets
tests pf: handle TTL expired during nat64 2025-12-29 07:54:56 +01:00
tools cross-build: Avoid adding <sys/cdefs.h> to SYSINCS 2025-12-29 13:15:14 +01:00
usr.bin m4: avoid warnings about too-long initializer strings 2025-12-29 13:19:34 +01:00
usr.sbin bsnmpd: avoid warnings about too-long initializer strings 2025-12-29 13:21:15 +01:00
.arcconfig
.arclint
.cirrus.yml
.clang-format
.clean_build_epoch
.git-blame-ignore-revs
.gitattributes
.gitignore
.mailmap
CONTRIBUTING.md
COPYRIGHT
LOCKS
MAINTAINERS
Makefile
Makefile.inc1 Makefile.inc1: Force NO_ROOT for distribute* and package* 2025-12-10 13:05:09 -05:00
Makefile.libcompat
Makefile.sys.inc
ObsoleteFiles.inc apm(8): Drop MLINK to apmconf(8) 2025-12-18 17:50:14 -05:00
README.md
RELNOTES
UPDATING

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.