Find a file
Felix Uhl f282ef5a56 fix: segfault in positional arg completion
Adding the inputPath as a positional feature uncovered this bug.
As positional argument forms were discarded from the `expectedArgs`
list, their closures were not. When the `.completer` closure was then
called, part of the surrounding object did not exist anymore.

This didn't cause an issue before, but with the new call to
`getEvalState()` in the "inputs" completer in nix/flake.cc, a segfault
was triggered reproducibly on invalid memory access to the `this`
pointer, which was always 0.

The solution of splicing the argument forms into a new list to extend
their lifetime is a bit of a hack, but I was unable to get the "nicer"
iterator-based solution to work.
2023-10-31 15:33:57 +01:00
.github docker: publish images to ghcr.io (#8066) 2023-10-20 19:28:26 +02:00
config Run autoupdate 2021-06-01 11:42:38 +02:00
contrib function-trace: always show the trace 2019-09-18 23:23:21 +02:00
doc Overhaul nix flake update and lock commands 2023-10-31 15:33:57 +01:00
m4 autoconf: Fix C++17 detection not working on Ubuntu 16.04. 2019-07-03 04:32:25 +02:00
maintainers add a link to all maintainer meeting notes 2023-10-19 10:57:45 +02:00
misc Choose a reasonable number similar to LimitNOFile 2023-07-07 07:52:16 -07:00
mk Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
perl treewide: Reference HashFormat members with scope 2023-10-19 00:56:41 +08:00
scripts Merge pull request #7593 from miallo/ignore-identical-rc-backup-files-for-installation 2023-09-25 14:14:53 +02:00
src fix: segfault in positional arg completion 2023-10-31 15:33:57 +01:00
tests fix: segfault in positional arg completion 2023-10-31 15:33:57 +01:00
unit-test-data/libstore Turn derivation unit tests into unit characterization tests 2023-10-26 18:09:01 -04:00
.dir-locals.el .dir-locals.el: Set c-block-comment-prefix 2020-07-10 11:21:06 +02:00
.editorconfig Add .editorconfig 2017-06-05 22:57:28 +01:00
.gitignore Clean up app.cc (#9201) 2023-10-22 22:56:46 +00:00
.version Bump version 2023-09-20 15:21:21 +02:00
boehmgc-coroutine-sp-fallback.diff Fix boehmgc-coroutine-sp-fallback.diff for FreeBSD 2023-09-20 09:04:42 -04:00
configure.ac Use positive source filtering for the standalone functional tests job 2023-10-09 08:29:27 -04:00
CONTRIBUTING.md Merge pull request #9182 from fricklerhandwerk/popular-issues 2023-10-19 16:25:36 -04:00
COPYING * Change this to LGPL to keep the government happy. 2006-04-25 16:41:06 +00:00
default.nix add flake-compat to flake.nix and use sha256 in default.nix 2023-03-06 21:11:24 +01:00
docker.nix fix "add an option to include flake-registry..." 2023-05-16 14:35:31 +02:00
flake.lock flake: complete update to 23.05 2023-09-21 21:00:53 -04:00
flake.nix Merge pull request #9162 from eclairevoyant/add-mainprogram 2023-10-17 14:44:29 +02:00
local.mk Use positive source filtering for the standalone functional tests job 2023-10-09 08:29:27 -04:00
Makefile Use positive source filtering for the standalone functional tests job 2023-10-09 08:29:27 -04:00
Makefile.config.in Use positive source filtering for the standalone functional tests job 2023-10-09 08:29:27 -04:00
precompiled-headers.h Config: Use nlohmann/json 2020-08-20 11:02:16 +02:00
README.md fix: Remove extra to from README.md (#9213) 2023-10-23 19:20:23 +02:00
shell.nix Remove url literals 2022-01-24 13:28:21 +01:00

Nix

Open Collective supporters Test

Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. Please refer to the Nix manual for more details.

Installation and first steps

Visit nix.dev for installation instructions and beginner tutorials.

Full reference documentation can be found in the Nix manual.

Building And Developing

See our Hacking guide in our manual for instruction on how to set up a development environment and build Nix from source.

Contributing

Check the contributing guide if you want to get involved with developing Nix.

Additional Resources

License

Nix is released under the LGPL v2.1.