1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-16 02:01:59 +02:00

Merge pull request #12544 from xokdvium/debugger-use-after-free

libexpr: Fix use-after-free of StaticEnv::up
This commit is contained in:
Eelco Dolstra 2025-02-27 16:55:49 +01:00 committed by GitHub
commit 1293388039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 14 deletions

View file

@ -0,0 +1,28 @@
#!/usr/bin/env bash
source ./common.sh
requireGit
flakeDir="$TEST_ROOT/flake"
createGitRepo "$flakeDir"
cat >"$flakeDir/flake.nix" <<EOF
{
inputs = {
};
outputs =
_:
let
in
{
packages.$system.default = throw "oh no";
};
}
EOF
git -C "$flakeDir" add flake.nix
# regression #12527 and #11286
echo ":env" | expect 1 nix eval "$flakeDir#packages.${system}.default" --debugger

View file

@ -28,7 +28,8 @@ suites += {
'commit-lock-file-summary.sh',
'non-flake-inputs.sh',
'relative-paths.sh',
'symlink-paths.sh'
'symlink-paths.sh',
'debugger.sh'
],
'workdir': meson.current_source_dir(),
}