FreeBSD/src 4bcc5a3lib/libc/db/btree bt_seq.c

btree/bt_seq.c: Fix two NULL pointer dereferences

This change fixes two NULL pointer dereferences caused by the
__bt_first function.

The first was caused by returning 0 (i.e., RET_SUCCESS) when a key
was not found, causing the caller to dereference an uninitalized
or NULL pointer. The second one was caused by an if statment clobbering
a local variable with a function call result that might be NULL.

Reported by:    clang-tidy
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Obtained from:  https://github.com/apple-oss-distributions/libc (partially)
Differential Revision:  https://reviews.freebsd.org/D54905
DeltaFile
+4-4lib/libc/db/btree/bt_seq.c
+4-41 files

FreeBSD/ports b785ad2emulators/open-vm-kmod distinfo Makefile, emulators/open-vm-tools distinfo Makefile

emulators/open-vm-*: Update to 13.0.10

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+3-3emulators/open-vm-tools/distinfo
+3-3emulators/open-vm-kmod/distinfo
+1-2emulators/open-vm-tools/Makefile
+1-1emulators/open-vm-kmod/Makefile
+8-94 files

LLVM/project 23a0513llvm/lib/CodeGen RegAllocBasic.h, llvm/test/CodeGen/AMDGPU register-killed-error-after-alloc-failure0.mir

[regalloc][basic] Fix non-deterministic codegen in basic register allocator (#177998)

The basic register allocator's priority queue exhibited
non-deterministic behavior when multiple LiveIntervals had identical
spill weights. This caused different register allocation decisions
between ASAN and non-ASAN builds, leading to spurious test failures on
some internal tests.

Root Cause:
The CompSpillWeight comparator only compared spill weights:
```
  return A->weight() < B->weight();
```

When two LiveIntervals had equal weights, the comparator returned false
for both comp(A,B) and comp(B,A), making them equivalent in the heap
ordering. The C++ standard does not specify the relative order of
equivalent elements in a heap. In practice, the heap's internal
structure for equivalent elements depends on implementation details and

    [20 lines not shown]
DeltaFile
+94-0llvm/unittests/CodeGen/RegAllocBasicTest.cpp
+9-8llvm/test/CodeGen/AMDGPU/register-killed-error-after-alloc-failure0.mir
+5-1llvm/lib/CodeGen/RegAllocBasic.h
+1-0llvm/unittests/CodeGen/CMakeLists.txt
+109-94 files

FreeNAS/freenas d3b7653src/middlewared/middlewared/etc_files/netdata netdata.conf.mako

disable unused netdata plugins
DeltaFile
+4-0src/middlewared/middlewared/etc_files/netdata/netdata.conf.mako
+4-01 files

OPNSense/core 660fa82src/etc/inc console.inc, src/opnsense/scripts/shell setaddr.php

console: fix overwrite of 'dhcp' configuration

Although this is correct from a pure config.xml.sample perspective
it clearly purges further configuration from the file which we better
avoid.
DeltaFile
+2-1src/opnsense/scripts/shell/setaddr.php
+2-1src/etc/inc/console.inc
+4-22 files

LLVM/project 023bfa2clang/lib/CIR/CodeGen CIRGenExprComplex.cpp, clang/test/CIR/CodeGen cleanup.cpp

[CIR] ExprWithCleanups for Complex expr (#178032)

Upstream support ExprWithCleanups for Complex expr
DeltaFile
+23-0clang/test/CIR/CodeGen/cleanup.cpp
+6-3clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+29-32 files

LLVM/project b794bafllvm/include/llvm/Analysis TargetTransformInfo.h TargetTransformInfoImpl.h, llvm/include/llvm/CodeGen BasicTTIImpl.h

[TTI] Add VectorInstrContext for context-aware insert/extract costs. (#175982)

This commit introduces the VectorInstrContext (VIC) infrastructure to
improve cost estimates for insert/extracts based on the context
instruction in which the insert/extract is used.

This is similar to CastContextHint, and allows providing context on how
the insert/extract is going to be used before creating IR. This is
useful in the LoopVectorizer, where costs need to estimated before
creating IR.

The new hint currently only replaces an existing check in AArch64,
but new uses will be introduced in follow-ups, including
https://github.com/llvm/llvm-project/pull/177201.

PR: https://github.com/llvm/llvm-project/pull/175982
DeltaFile
+45-28llvm/include/llvm/CodeGen/BasicTTIImpl.h
+35-15llvm/lib/Analysis/TargetTransformInfo.cpp
+33-11llvm/include/llvm/Analysis/TargetTransformInfo.h
+25-17llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
+19-18llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+19-13llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+176-10224 files not shown
+360-23030 files

LLVM/project 4803b0bllvm/lib/SandboxIR Context.cpp

[perf] Replace copy-assign by move-assign in llvm/lib/SandboxIR/* (#178180)

DeltaFile
+4-4llvm/lib/SandboxIR/Context.cpp
+4-41 files

LLVM/project 84cccfcllvm/lib/Transforms/IPO MemProfContextDisambiguation.cpp, llvm/lib/Transforms/Utils LoopUtils.cpp SampleProfileInference.cpp

[perf] Replace copy-assign by move-assign in llvm/lib/Transforms/* (#178178)

DeltaFile
+1-1llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+1-1llvm/lib/Transforms/Utils/LoopUtils.cpp
+1-1llvm/lib/Transforms/Utils/SampleProfileInference.cpp
+1-1llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+1-1llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+5-55 files

LLVM/project cc04746llvm/lib/Object GOFFObjectFile.cpp, llvm/lib/ObjectYAML CodeViewYAMLSymbols.cpp CodeViewYAMLTypes.cpp

[perf] Replace copy-assign by move-assign in llvm/lib/Object(YAML)/* (#178177)

DeltaFile
+1-1llvm/lib/Object/GOFFObjectFile.cpp
+1-1llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp
+1-1llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp
+3-33 files

FreeBSD/ports 3c2e221sysutils/graffer Makefile pkg-plist

sysutils/graffer: Update 1.1 => 1.5.1

News:
http://chaosophia.net/graffer/#news

Commit log:
https://github.com/koue/graffer/compare/1.1...1.5.1

PR:             292730
Co-authored-by: Vladimir Druzenko <vvd at FreeBSD.org>
DeltaFile
+15-20sysutils/graffer/Makefile
+15-0sysutils/graffer/pkg-plist
+3-2sysutils/graffer/distinfo
+33-223 files

LLVM/project d69ad21flang/lib/Semantics expression.cpp resolve-names.cpp, flang/test/Semantics bug177601.f90

[flang] Missing function-vs-subroutine checks on bindings (#177699)

Derived type procedure bindings aren't always subject to the checks of
the function-vs-subroutine classification flags on their symbol table
entries in name resolution, and we're missing some cases that aren't
caught later in expression semantics, which assumed that name resolution
would have already handled them. So check function-vs-subroutine errors
on bindings in expression semantics entirely.

Fixes https://github.com/llvm/llvm-project/issues/177601.
DeltaFile
+80-0flang/test/Semantics/bug177601.f90
+7-0flang/lib/Semantics/expression.cpp
+5-0flang/lib/Semantics/resolve-names.cpp
+92-03 files

LLVM/project fbdb9d3flang/lib/Semantics resolve-names.cpp, flang/test/Semantics bug177502.f90

[flang] Symbol for ENTRY with RESULT has Subroutine flag set (#177671)

When creating a HostAssocDetails symbol for an ENTRY statement with an
explicit RESULT, name resolution unconditionally sets the Subroutine
flag on the symbol. Don't do that.

Fixes https://github.com/llvm/llvm-project/issues/177502.
DeltaFile
+28-0flang/test/Semantics/bug177502.f90
+1-1flang/lib/Semantics/resolve-names.cpp
+29-12 files

LLVM/project d3ebc63clang/include/clang/Options Options.td, clang/test/Driver cl-options.c

[clang-cl] Handle -fmacro-prefix-map= (#177917)

DeltaFile
+1-1clang/include/clang/Options/Options.td
+1-0clang/test/Driver/cl-options.c
+2-12 files

LLVM/project ae24a90llvm/test/Transforms/SLPVectorizer/X86 disjoint-or-reductions.ll

[SLP][NFC]Add disojoint reduction or tests, which can be represented as bitcasts/bswaps
DeltaFile
+261-0llvm/test/Transforms/SLPVectorizer/X86/disjoint-or-reductions.ll
+261-01 files

LLVM/project 79f5bc4flang/include/flang/Parser parse-tree.h, flang/lib/Parser Fortran-parsers.cpp

[flang] Implemented the RANK clause of an attr-spec, per the Fortran 2023 Standard (#176979)

This implements the RANK clause per the Fortran 2023 Standard. This
includes both the parsing/semantics and un-parsing functionality. It is
a fairly straight-forward change.

An executable test was added that tests the examples from the Fortran
2023 What's New document.

check-flang, check-flang-rt, and llvm-lit tests have been executed
against this change.

---------

Co-authored-by: Kevin Wyatt <kwyatt at hpe.com>
DeltaFile
+70-0flang/test/Semantics/rank-clause01.f90
+66-0flang/test/Lower/rank-clause02.f90
+32-0flang/test/Parser/unparse-rank-clause.f90
+23-0flang/lib/Semantics/resolve-names.cpp
+7-2flang/include/flang/Parser/parse-tree.h
+4-1flang/lib/Parser/Fortran-parsers.cpp
+202-33 files not shown
+206-49 files

LLVM/project 24862c2llvm/test/CodeGen/RISCV/rvv fixed-vectors-emergency-slot.mir

[RISCV][test] Simplify a test. (#178052)

DeltaFile
+2-2llvm/test/CodeGen/RISCV/rvv/fixed-vectors-emergency-slot.mir
+2-21 files

LLVM/project 9e5ef1f.github new-prs-labeler.yml

[Github] Add glob patterns for `clang:ssaf` label (#178079)

This change updates the `new-prs-labeler.yml` file to automatically add
`clang:ssaf` label to PRs that add or modify SSAF headers,
implementation, tests and documentation.
DeltaFile
+8-0.github/new-prs-labeler.yml
+8-01 files

LLVM/project 8deb793llvm/lib/Analysis ValueTracking.cpp, llvm/lib/Support KnownFPClass.cpp

ValueTracking: log never returns denormal
DeltaFile
+74-74llvm/test/Transforms/Attributor/nofpclass-log.ll
+28-28llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-log.ll
+5-17llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-log.ll
+2-2llvm/unittests/Analysis/ValueTrackingTest.cpp
+1-1llvm/lib/Support/KnownFPClass.cpp
+0-2llvm/lib/Analysis/ValueTracking.cpp
+110-1246 files

LLVM/project 2001488libcxx/include deque string, libcxx/include/__debug_utils sanitizers.h

[libc++] Honor __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ in libc++ (#168955)

Address sanitizer recently got a new macro __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
which is intended to disable container overflow checks in libraries (either the
standard library or user libraries that might provide such checks). This patch makes
libc++ honor that macro and, in addition, cleans up how these checks are enabled for
string (which is special) by introducing a macro just for string.

rdar://166234942
DeltaFile
+83-0libcxx/test/extensions/libcxx/asan/disable_container_overflow_checks.pass.cpp
+30-5libcxx/include/__debug_utils/sanitizers.h
+13-13libcxx/include/deque
+15-9libcxx/include/string
+22-0libcxx/test/extensions/libcxx/asan/diagnose_container_overflow_checks_disablement.verify.cpp
+7-0libcxx/utils/ci/run-buildbot
+170-277 files not shown
+180-3113 files

LLVM/project ecaefc9mlir/lib/Dialect/Tosa/Transforms TosaValidation.cpp, mlir/test/Dialect/Tosa level_check.mlir

Revert "[mlir][tosa] Improve level check error messages" (#178239)

Reverts llvm/llvm-project#174980
DeltaFile
+60-60mlir/test/Dialect/Tosa/level_check.mlir
+45-53mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
+105-1132 files

LLVM/project ccea75dllvm/unittests/TargetParser Host.cpp

[llvm][AIX][unit] skip AIXTargetVersionDetect when target env in effect (#178017)

The unit tests expects OS levels in the default triple to match the
host, but if we are overriding the compiled in default with an
environment setting that may not be the case.
DeltaFile
+5-0llvm/unittests/TargetParser/Host.cpp
+5-01 files

LLVM/project 6f8cea3flang-rt/include/flang-rt/runtime terminator.h, flang-rt/lib/runtime terminator.cpp stop.cpp

[flang][MIF] Adding Stop and ErrorStop PRIF call procedures (#166787)

This PR proposes to add `Stop` and `ErrorStop` PRIF call procedures to the MIF
dialect. If the `-fcoarray` flag is passed, then all calls to `STOP` and `ERROR
STOP` will use those of PRIF in flang-rt. Thes procedure has been registered 
during the initialization (mif::InitOp).

---------

Co-authored-by: Dan Bonachea <dobonachea at lbl.gov>
DeltaFile
+139-0flang/lib/Optimizer/Transforms/MIFOpConversion.cpp
+42-5flang-rt/lib/runtime/terminator.cpp
+33-3flang/test/Fir/MIF/init.mlir
+23-8flang-rt/lib/runtime/stop.cpp
+10-2flang-rt/include/flang-rt/runtime/terminator.h
+8-0flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
+255-185 files not shown
+262-2011 files

FreeBSD/ports 85c21fcsecurity/openssl36 distinfo Makefile

security/openssl36: Security update to 3.6.1

Security:       4b824428-fb93-11f0-b194-8447094a420f
MFH:            2026Q1
DeltaFile
+3-3security/openssl36/distinfo
+1-1security/openssl36/Makefile
+4-42 files

FreeBSD/src af9d113.github CODEOWNERS

CODEOWNERS: Add myself to WPA
DeltaFile
+2-0.github/CODEOWNERS
+2-01 files

FreeBSD/src 19a913c.github CODEOWNERS

CODEOWNERS:     Add myself to Heimdal and MIT KRB5
DeltaFile
+4-0.github/CODEOWNERS
+4-01 files

LLVM/project 0805437clang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp, clang/test/Sema warn-lifetime-safety.cpp

Transparent functions for all gsl::Pointers
DeltaFile
+75-0clang/test/Sema/warn-lifetime-safety.cpp
+19-17clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+94-172 files

LLVM/project 9cd030dclang/include/clang/Analysis/Analyses/LifetimeSafety Facts.h, clang/lib/Analysis/LifetimeSafety Checker.cpp FactsGenerator.cpp

[LifetimeSafety] Detect dangling fields
DeltaFile
+175-0clang/test/Sema/warn-lifetime-safety-dangling-field.cpp
+49-21clang/lib/Analysis/LifetimeSafety/Checker.cpp
+50-17clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+48-4clang/include/clang/Analysis/Analyses/LifetimeSafety/Facts.h
+25-4clang/lib/Sema/AnalysisBasedWarnings.cpp
+0-28clang/test/Analysis/lifetime-cfg-output.cpp
+347-7415 files not shown
+459-11221 files

LLVM/project a4297bdclang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

Handle non-trivial view types of temporaries
DeltaFile
+22-75clang/test/Sema/warn-lifetime-safety.cpp
+10-7clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+1-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+33-823 files

LLVM/project 01a4b52mlir/lib/Dialect/Transform/IR TransformOps.cpp

[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TransformOps.cpp (NFC)
DeltaFile
+1-1mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+1-11 files