CVS commit: [netbsd-11] src/sys/external/bsd/ipf/netinet

"Martin Husemann" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	martin
Date:		Wed Jun  3 18:24:52 UTC 2026

Modified Files:
	src/sys/external/bsd/ipf/netinet [netbsd-11]: ip_fil_netbsd.c

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #295):

	sys/external/bsd/ipf/netinet/ip_fil_netbsd.c: revision 1.40

Explicitely check a pointer against NULL before computing a member address,
to avoid undefined behavior. Avoids the same NULL pointer check being
"optimised" later, leading to NULL pointer dereference.

It is expected that -fno-delete-null-pointer-checks would avoid this but
it does not.

For details see
https://mail-index.netbsd.org/tech-toolchain/2026/05/23/msg004818.html
and PR toolchain/60289


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.39.4.1 \
    src/sys/external/bsd/ipf/netinet/ip_fil_netbsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.