[libc] return -1 when v/swprintf truncate output (#245838)
Hello, this is my first pr for libc but I have done my best to read the
guidelines and policies. I look forward to making any changes or
improvements as needed :). AI Disclosure: no ai was used, but I did read
a previous pr for this issue which was later closed for being AI
generated. This change will fix #245060.
From the standard:
```
The swprintf function returns the number of wide characters written in the array, not
counting the terminating null wide character, or a negative value if an encoding error
occurred or if n or more wide characters were requested to be written.
```
```
The vswprintf function returns the number of wide characters written in the array, not
counting the terminating null wide character, or a negative value if an encoding error
occurred or if n or more wide characters were requested to be generated.
```
[12 lines not shown]
[RISCV][GISel] Add GlobalISel equivalents of the sewNsimm5 complex patterns (#247920)
Add GIComplexPatternEquiv records for sew8simm5 through sew64simm5 and
implement selectRVVSimm5 in the GlobalISel instruction selector,
mirroring RISCVDAGToDAGISel::selectRVVSimm5. The importer can now use
the patterns that need them, so constant splats that fit in a 5-bit
signed immediate select to vmv.v.i instead of li + vmv.v.x.
Part of #246831
[SLSR] Add tests for reuse of OR-based multiplies (NFC) (#247747)
Adds test for OR reuse which can expose gaps in SLSR for future
analysis. This is attempt to extract the test use cases exposed by
https://github.com/llvm/llvm-project/pull/240431 and the existing gaps
upstream.
Assisted-by: OpenAI Codex
Assisted-by: Claude
security/zeek: Update to 9.0.2
https://github.com/zeek/zeek/releases/tag/v9.0.2
This release fixes the following security issues:
- CRITICAL: packet_analysis/IP: Use-after-free due to tunneled IP
fragment key collisions
- CRITICAL: SMTP/BDAT: Use-after-free due BDAT holding a referencing
to a freed mail instance
- MEDIUM: DCE-RPC: Pipelined requests break opnum association allowing evasion
- MEDIUM: broker: Out-of-bounds write when unserializing invalid bloom filter
- MEDIUM: broker: Underflow and out-of-bounds write from inconsistent
incremental hash state
[25 lines not shown]
[GVN] Extend processFoldableCondBr to support switch
A switch with constant condition can also be folded. As a result, we
rename processFoldableCondBr to support switch. The logic of the
function is rewrite as switch can have multiple destinations. Instead
of recording something dead, we record the Live sucessor, and skip
same live BB.
splitCriticalEdges in here is also support merging same BB so that GVN
can reach converge earlier.
Assisted-by: Claude # Test
CI: handle failed module load in zfs-qemu-packages
There are cases where the dkms packages will build but fail to load
while doing the test install step of zfs-qemu-packages. When
that happens, we should mark the specific test as a failure but
continue with the other test installs. Also print some diagnostic
info on why the module load failed.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
Closes #20100
nd6: Periodically retry DAD for duplicated IPv6 addresses
When Duplicate Address Detection fails, an IPv6 address stays
marked duplicated and unusable. If the conflict is transient,
such as another host being slow to remove the address, the address
never recovers. This change retries DAD for duplicated addresses
every 30 seconds. The number of retries per address is limited
by the new net.inet6.ip6.dad_restart sysctl (default 10).
The count resets after DAD succeeds, and retries stop if
the address is detached.
Reviewed by: pouria, glebius
Differential Revision: https://reviews.freebsd.org/D54749
math/cminpack: Update to 1.3.16
ChangeLog: https://github.com/devernay/cminpack/releases/tag/v1.3.16
* Fix the long double solvers on Linux ppc64le (IBM double-double): dpmpar(1)
returned 4.9e-324 instead of 2^-105, and the solvers did not converge.
* Fix the long double tests on Linux aarch64 and s390x (#193), and the tlmderfd
example on aarch64.
* C++ wrapper: add hybrj.
[GVN][MDA] getFroArgument in lifetime_start intrinsic
A lifetime_starts gets PartialAlias for static size
allocation (for inbound access). Such access can return PartialAlias
to a Def precisely instead of MayAlias, which need to use getClobber.
After taking a look at MDA, we also can fix this over there, which
uses getAfter, which returns Clobber in static inboud access.
Assisted-by: Claude # Test
emulators/open-simh: update to 2026-07-15.
Changes (most recent first):
* S3: Fix zoned decimal negative number representation
* PDP18B: Add delay to Type 647 line printer.
* SCP: Fix sim_printf_fmts.h for Visual Studio 2013 and older
* SIM_ETHER: restore ability to compile on Visual Studio 2013 and below
* CMake: Support RelWithDebInfo configuration
* GIT: Ignore CMakeUserPresets.json
* GIT: native line endings for .gitattributes, .gitignore
* GIT: .gitattributes, .gitignore and *.cmake are text files
* CMAKE: Conditionally add value of CPACK_BUILD_CONFIG to package name
* MAKEFILE: Move PCRE2 library path search earlier
* Makfile: PCRE2 default
* SCP: PCRE2 support.
* FreeBSD: link against libpcap
* PDP11: Changes for Terak 8510/a simulator:
* SCP: Add a -F option to SET <dev> DISABLE command to force detach and cancel
[27 lines not shown]