Skip to content

[Backport 2.35-maintenance] libexpr-c: allow null primop docs - #16410

Merged
internal-nix-ci[bot] merged 1 commit into
2.35-maintenancefrom
backport-16407-to-2.35-maintenance
Sep 1, 2026
Merged

[Backport 2.35-maintenance] libexpr-c: allow null primop docs#16410
internal-nix-ci[bot] merged 1 commit into
2.35-maintenancefrom
backport-16407-to-2.35-maintenance

Conversation

@internal-nix-ci

Copy link
Copy Markdown

Automatic backport to 2.35-maintenance, triggered by a label in #16407.

Problem: `nix_alloc_primop` crashes when the doc pointer is null,
despite the C API documenting it as optional.

Solution: treat null as `std::nullopt` (and add a regression test).
(cherry picked from commit 53440e1)
@internal-nix-ci
internal-nix-ci Bot requested a review from edolstra as a code owner September 1, 2026 14:47
@internal-nix-ci
internal-nix-ci Bot enabled auto-merge September 1, 2026 14:47
@github-actions github-actions Bot added the c api Nix as a C library with a stable interface label Sep 1, 2026
@internal-nix-ci
internal-nix-ci Bot merged commit e69fa58 into 2.35-maintenance Sep 1, 2026
16 checks passed
@internal-nix-ci
internal-nix-ci Bot deleted the backport-16407-to-2.35-maintenance branch September 1, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant