HardenedBSD/src 2e5472cinclude/rpc xdr.h, lib/libc/xdr xdr.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+5-7sys/sys/buf_ring.h
+8-2sys/dev/dpaa2/dpaa2_ni.c
+1-8sys/rpc/xdr.h
+1-8include/rpc/xdr.h
+7-0lib/libc/xdr/xdr.c
+7-0sys/xdr/xdr.c
+29-253 files not shown
+34-299 files

HardenedBSD/src 5c80af6include/rpc xdr.h, lib/libc/xdr xdr.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+5-7sys/sys/buf_ring.h
+8-2sys/dev/dpaa2/dpaa2_ni.c
+1-8include/rpc/xdr.h
+1-8sys/rpc/xdr.h
+7-0lib/libc/xdr/xdr.c
+7-0sys/xdr/xdr.c
+29-253 files not shown
+34-299 files

HardenedBSD/ports d5e4ff9sysutils/mdfried distinfo Makefile.crates, x11/wleave distinfo Makefile.crates

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+983-0sysutils/mdfried/distinfo
+490-0sysutils/mdfried/Makefile.crates
+105-95x11/wleave/distinfo
+51-46x11/wleave/Makefile.crates
+39-0sysutils/mdfried/Makefile
+27-8x11/wleave/files/patch-layout.json
+1,695-14916 files not shown
+1,782-20922 files

HardenedBSD/ports 0bb32f6math/scilab Makefile

math/scilab: pin to java 8

Does not build with jdk11+.

[javac] /wrkdirs/usr/ports/math/scilab/work/scilab-6.1.1/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java:17: error: package javax.annotation does not exist

PR:     272855
Approved-by:    no maintainer
DeltaFile
+1-0math/scilab/Makefile
+1-01 files

HardenedBSD/src 498fe07sys/sys buf_ring.h

buf_ring: Rename some variables

The elements we store in buffer rings are buffers, so refer to them as
`buf` throughout instead of a mixture of `buf`, `ret`, and `new`,
especially since the latter breaks C++ code that directly or indirectly
includes this header.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    siderop1_netapp.com, markj
Differential Revision:  https://reviews.freebsd.org/D54827
DeltaFile
+5-7sys/sys/buf_ring.h
+5-71 files

HardenedBSD/ports 98d61a3sysutils Makefile, sysutils/mdfried distinfo Makefile.crates

sysutils/mdfried: Add new port

Mdfried is a markdown viewer for the terminal that renders headers
as Bigger Text than the rest.

https://crates.io/crates/mdfried
DeltaFile
+983-0sysutils/mdfried/distinfo
+490-0sysutils/mdfried/Makefile.crates
+39-0sysutils/mdfried/Makefile
+2-0sysutils/mdfried/pkg-descr
+1-0sysutils/Makefile
+1,515-05 files

HardenedBSD/ports 3042fe8devel/jiic/files build.xml

devel/jiic: support building with any jdk

Builds fine with jdk21.

PR:     292661
Approved-by:    ale@ (maintainer)
DeltaFile
+1-1devel/jiic/files/build.xml
+1-11 files

HardenedBSD/ports 3573372x11/walker distinfo Makefile.crates

x11/walker: Update to 2.14.1

Changelog:
- https://github.com/abenz1267/walker/releases/tag/v2.14.0
- https://github.com/abenz1267/walker/releases/tag/v2.14.1

Reported by:    GitHub (watch releases)
DeltaFile
+3-23x11/walker/distinfo
+0-10x11/walker/Makefile.crates
+1-1x11/walker/Makefile
+4-343 files

HardenedBSD/src e17d7ablib/libc/xdr xdr.c, sys/xdr xdr.c

xdr_string: don't leak strings with xdr_free

Historically (and in a small amount of older software such as OpenAFS),
developers would attempt to free XDR strings with

        xdr_free((xdrproc_t)xdr_string, &string)

This resulted in xdr_free calling xdr_string with only two intentional
arguments and whatever was left in the third argument register.  If the
register held a sufficently small number, xdr_string would return FALSE
and not free the string (no one checks the return values).

Software should instead free strings with:

        xdr_free((xdrproc_t)xdr_wrapstring, &string)

Because buggy software exists in the wild, act as though xdr_wrapstring
was used in the XDR_FREE case and plug these leaks.


    [5 lines not shown]
DeltaFile
+7-0sys/xdr/xdr.c
+7-0lib/libc/xdr/xdr.c
+14-02 files

HardenedBSD/src ac5a19einclude/rpc xdr.h, lib/libc/rpc rpc.3

rpc/xdr.h: make xdrproc_t always take two arguments

The type of xdrproc_t is clearly defined in the comments as a function
with two arguments, an XDR * and a void * (sometimes spelled caddr_t).
It was initialy defined as:

        typedef bool_t (*xdrproc_t)();

At some point people started giving it a non-empty argument list.
Unfortunatly, there has been widespread disagreement about how arguments
are passed.  There seems to have been a widespread view that it should
be allowed to pass three argument function pointer to xdrproc_t.  Most
notable is xdr_string which takes a maximum length parameter. This lead
to all sorts of prototypes (all of which have been present in the
FreeBSD source tree):

FreeBSD userspace (nominally from tirpc, but seemingly local):
        typedef bool_t (*xdrproc_t)(XDR *, ...);
FreeBSD kernel, glibc:

    [36 lines not shown]
DeltaFile
+1-8sys/rpc/xdr.h
+1-8include/rpc/xdr.h
+2-2lib/libc/rpc/rpc.3
+2-1sys/contrib/openzfs/module/nvpair/nvpair.c
+1-1sys/sys/param.h
+7-205 files

HardenedBSD/ports 3ee8ab7sysutils/elephant Makefile distinfo

sysutils/elephant: Update to 2.19.1

Changelog:
- https://github.com/abenz1267/elephant/releases/tag/v2.19.0
- https://github.com/abenz1267/elephant/releases/tag/v2.19.1

Reported by:    GitHub (watch releases)
DeltaFile
+8-6sysutils/elephant/Makefile
+5-5sysutils/elephant/distinfo
+13-112 files

HardenedBSD/ports fa69b48x11/wleave distinfo Makefile.crates, x11/wleave/files patch-layout.json patch-man_wleave.json.5.scd

x11/wleave: Update to 0.7.0

Changelog: https://github.com/AMNatty/wleave/releases/tag/0.7.0

Reported by:    GitHub (watch releases)
DeltaFile
+105-95x11/wleave/distinfo
+51-46x11/wleave/Makefile.crates
+27-8x11/wleave/files/patch-layout.json
+31-0x11/wleave/files/patch-man_wleave.json.5.scd
+15-0x11/wleave/files/patch-man_wleave.1.scd
+1-2x11/wleave/Makefile
+230-1516 files

HardenedBSD/ports ec0f328ftp/weex distinfo Makefile

ftp/weex: Update to 2.8.4.5
DeltaFile
+3-3ftp/weex/distinfo
+1-1ftp/weex/Makefile
+4-42 files

HardenedBSD/ports 712e527net-mgmt/packit pkg-descr Makefile

net-mgmt/packit: adjust COMMENT and pkg-descr

Align description with current, modernized upstream.
DeltaFile
+12-7net-mgmt/packit/pkg-descr
+2-1net-mgmt/packit/Makefile
+14-82 files

HardenedBSD/src f31336bsys/dev/dpaa2 dpaa2_ni.c

dpnaa2: announce transmit checksum support

Let the network stack know that the NIC supports checksum offloading
for the IPv4 header checksum and the TCP and UDP transport checksum.
This avoids the computation in software and therefore provides the
expected performance gain.

PR:                     292006
Reviewed by:            dsl, Timo Völker
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D54809
DeltaFile
+8-2sys/dev/dpaa2/dpaa2_ni.c
+8-21 files

HardenedBSD/ports c3e9641audio/mac/files patch-Source_MACLib_Prepare.cpp, audio/openal-soft/files patch-alc_backends_oss.cpp

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+0-523audio/openal-soft/files/patch-alc_backends_oss.cpp
+15-29misc/codex/distinfo
+6-13misc/codex/Makefile.crates
+0-12audio/mac/files/patch-Source_MACLib_Prepare.cpp
+7-4math/libqalculate/Makefile
+7-4math/qalculate-gtk/Makefile
+35-58523 files not shown
+97-63929 files

HardenedBSD/ports 0875e0ex11/contour Makefile

x11/contour: Unbreak build on -CURRENT

clang with debug assertions enabled (on -CURRENT) crashes when it
tries to compile this port. As a workaround use clang from ports when
system clang has debug assertions enabled.
DeltaFile
+8-1x11/contour/Makefile
+8-11 files

HardenedBSD/ports 9761434misc/codex distinfo Makefile.crates

misc/codex: Update to 0.89.0

Changelog:
- https://github.com/openai/codex/releases/tag/rust-v0.88.0
- https://github.com/openai/codex/releases/tag/rust-v0.89.0

Reported by:    GitHub (watch releases)
DeltaFile
+15-29misc/codex/distinfo
+6-13misc/codex/Makefile.crates
+2-3misc/codex/Makefile
+23-453 files

HardenedBSD/ports bc84965audio/openal-soft distinfo Makefile, audio/openal-soft/files patch-alc_backends_oss.cpp

audio/openal-soft: Update to 1.25.1

https://github.com/kcat/openal-soft/releases/tag/1.25.1
DeltaFile
+0-523audio/openal-soft/files/patch-alc_backends_oss.cpp
+3-3audio/openal-soft/distinfo
+1-2audio/openal-soft/Makefile
+4-5283 files

HardenedBSD/ports d115dc0net/liveMedia distinfo Makefile

net/liveMedia: Update to 2026.01.12
DeltaFile
+3-3net/liveMedia/distinfo
+1-1net/liveMedia/Makefile
+4-42 files

HardenedBSD/ports 9addd50audio/mac distinfo Makefile, audio/mac/files patch-Source_MACLib_Prepare.cpp

audio/mac: Update to 12.04

Changes: https://www.monkeysaudio.com/versionhistory.html
DeltaFile
+0-12audio/mac/files/patch-Source_MACLib_Prepare.cpp
+3-3audio/mac/distinfo
+1-2audio/mac/Makefile
+4-173 files

HardenedBSD/ports 783e6aedatabases/pg_textsearch distinfo Makefile

databases/pg_textsearch: Update to 0.4.1
DeltaFile
+3-3databases/pg_textsearch/distinfo
+1-1databases/pg_textsearch/Makefile
+4-42 files

HardenedBSD/ports f8ba7a9audio/wavpack Makefile distinfo

audio/wavpack: Update to 5.9.0

Add source URL to WWW, since this is what devs really want.

Remove cmake:testing; test target has been failing for a while.
This needs more investigation.

Remove unused WAVPACK_BUILD_DOCS from CMAKE_ARGS. Project transitioned
to WAVPACK_INSTALL_DOCS, but disabling this would disable installation
of the manpages, which is not the desired effect.

https://github.com/dbry/WavPack/releases/tag/5.9.0
DeltaFile
+5-4audio/wavpack/Makefile
+3-3audio/wavpack/distinfo
+1-1audio/wavpack/pkg-plist
+9-83 files

HardenedBSD/ports 088bd6aaudio/strawberry distinfo Makefile

audio/strawberry: Update to 1.12.17

Require USE_QT=imageformat:run, as this version supports the webp
image format.

https://github.com/strawberrymusicplayer/strawberry/releases/tag/1.2.17
DeltaFile
+3-3audio/strawberry/distinfo
+2-2audio/strawberry/Makefile
+5-52 files

HardenedBSD/ports 59aff95math/qalculate-gtk Makefile distinfo

math/qalculate-gtk: Update to 5.9.0

Set c++ dialect to c++17 (previously undefined), libtool:build is not
needed as project supplies its own libtool, intltool is no longer used.

https://github.com/Qalculate/qalculate-gtk/releases/tag/v5.9.0
DeltaFile
+7-4math/qalculate-gtk/Makefile
+3-3math/qalculate-gtk/distinfo
+10-72 files

HardenedBSD/ports b499137math/libqalculate Makefile distinfo

math/libqalculate: Update to 5.9.0

Improve COMMENT, set c++ dialect to c++17 (previously undefined),
intltool is no longer used.

https://github.com/Qalculate/libqalculate/releases/tag/v5.9.0
DeltaFile
+7-4math/libqalculate/Makefile
+3-3math/libqalculate/distinfo
+1-1math/libqalculate/pkg-plist
+11-83 files

HardenedBSD/ports ac709efmath/qalculate-qt distinfo Makefile

math/qalculate-qt: Update to 5.9.0

Set c++ dialect to c++17 (previously undefined).

https://github.com/Qalculate/qalculate-qt/releases/tag/v5.9.0
DeltaFile
+3-3math/qalculate-qt/distinfo
+4-1math/qalculate-qt/Makefile
+7-42 files

HardenedBSD/ports 13abbb0net-im/flare distinfo Makefile.crates

net-im/flare: Update 0.18.0 => 0.18.1

Changelog:
https://gitlab.com/schmiddi-on-mobile/flare/-/releases/0.18.1

PR:             292644
Reported by:    Yusuf Yaman <nxjoseph at protonmail.com> (maintainer)
DeltaFile
+5-5net-im/flare/distinfo
+2-2net-im/flare/Makefile.crates
+1-1net-im/flare/Makefile
+8-83 files

HardenedBSD/src 03a7a1asys/amd64/include ifunc.h, sys/i386/include ifunc.h

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+34-6sys/x86/x86/local_apic.c
+5-0sys/i386/include/ifunc.h
+0-5sys/netlink/ktest_netlink_message_writer.c
+5-0sys/amd64/include/ifunc.h
+1-1sys/netlink/ktest_netlink_message_writer.h
+45-125 files

HardenedBSD/src c80c367sys/amd64/include ifunc.h, sys/i386/include ifunc.h

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+34-6sys/x86/x86/local_apic.c
+5-0sys/i386/include/ifunc.h
+0-5sys/netlink/ktest_netlink_message_writer.c
+5-0sys/amd64/include/ifunc.h
+1-1sys/netlink/ktest_netlink_message_writer.h
+45-125 files