sys/qwz: include RX padding in length checks
The shared RX handler strips the descriptor and L3 padding before
setting the packet length. Include both in the bound, matching the
WBM null-queue path.
OK: stsp@
sys/qwz: retain active key task arguments
Remove active key operations from the pending queue before waiting
for firmware, retaining their node reference and a local key copy.
Recheck association state after waits before updating key state or
marking the port valid.
OK: stsp@
don't mix silicon debug test with fast strings
fixes a mistake introduced when code was moved into cpu_fix_msrs()
in cpu.c rev 1.160
from daniel@, ok deraadt@
libcrypto: avoid undefined behavior with zero-length buffers
Avoid UBSan failures caused by null pointers in zero-length operations.
- Avoid zero-offset arithmetic on null BIGNUM data
- Return early for zero-length BIGNUM output
- Avoid passing a null destination to strlcpy
- Skip memcmp for empty test vectors
ok beck
Report invalid base64 BIO state as an internal error
The base64 BIO filter uses OPENSSL_assert() for several internal buffer
state checks. OPENSSL_assert() calls OpenSSLDie() on failure, which
terminates the process instead of returning an error to the caller.
Replace these assertions with explicit checks that raise
ERR_R_INTERNAL_ERROR on the BIO error queue and return an error from
b64_read(), b64_write(), or b64_ctrl(). This preserves the internal state
checks while allowing callers to handle the failure through the BIO API.
ok tb joshua beck
Disallow nul byte in received scp -O filename. Not reachable in normal
operation since a nul would cause a filename mismatch, but potentially
possible if being used an unusual configuration such as a custom filter.
Reported by Chua Wei Xun <weixun.chua at e-cq.net>, ok djm@
The apple,nclusters property is a remnant of early bringup and never made
it in the official bindings. Drop it and calculate the number of clusters
from the register area size. Fixes out-of-bounds access on SoCs that
provide less than 6 clusters.
ok patrick@, jsg@
lang/ghc: use getexecpath(3) for executablePath on OpenBSD
getexecpath(3) is new in OpenBSD 8.0. Without it ghc-internal falls through
to the argv[0] fallback and System.Environment.executablePath is Nothing.
Also let ghc-boot use base's executablePath, choosing at run time so the port
still builds with a bootstrap compiler whose base predates getexecpath(3),
and mark openbsd as query-capable in the executablePath test.
Bump REVISION for the getexecpath change
System.Environment.executablePath goes from Nothing to a working query, and
getExecutablePath from argv[0] to a canonicalized absolute path, so the
package behaves differently and needs to be distinguishable.
OK kili@