1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00
nix/src/libutil-tests
Sergei Zimmerman b2596a7615
libutil: Add custom PeekSort implementation
Unlike std::sort and std::stable_sort, this implementation
does not lead to out-of-bounds memory reads or other undefined
behavior when the predicate is not strict weak ordering.

This makes it possible to use this function in libexpr for
builtins.sort, where an incorrectly implemented comparator
in the user nix code currently can crash and burn the evaluator
by invoking C++ UB.
2025-06-15 16:52:01 +00:00
..
data/git Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
.version Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
args.cc Fix -Wsign-compare errors 2025-04-03 09:48:53 +02:00
canon-path.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
checked-arithmetic.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
chunked-vector.cc Fix -Wsign-compare errors 2025-04-03 09:48:53 +02:00
closure.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
compression.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
config.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
executable-path.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
file-content-address.cc libutil: Add missing format arguments to UsageError ctor 2025-04-25 13:35:16 +03:00
file-system.cc add DirectoryIterator to re-throw std::filesystem::filesystem_error 2025-05-01 11:54:13 +02:00
git.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
hash.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
hilite.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
json-utils.cc libutil-tests/json-utils: fix -Werror=sign-compare error 2025-05-19 09:26:24 +02:00
logging.cc Fix various typos in source code 2025-05-25 20:14:11 +00:00
lru-cache.cc Fix -Wsign-compare errors 2025-04-03 09:48:53 +02:00
meson.build libutil: Add custom PeekSort implementation 2025-06-15 16:52:01 +00:00
monitorfdhup.cc Don't build MonitorFdHup on Windows 2025-04-23 19:51:13 +02:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_util.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00
pool.cc Fix -Wsign-compare errors 2025-04-03 09:48:53 +02:00
position.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
processes.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
references.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
sort.cc libutil: Add custom PeekSort implementation 2025-06-15 16:52:01 +00:00
spawn.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
strings.cc Use StringMap instead of std::map<std::string, std::string> throughout the codebase 2025-05-19 20:33:28 +00:00
suggestions.cc Fix -Wsign-compare errors 2025-04-03 09:48:53 +02:00
terminal.cc libutil: amend OSC 8 escape stripping for xterm-style separator 2025-04-29 16:12:18 +01:00
url.cc Use StringMap instead of std::map<std::string, std::string> throughout the codebase 2025-05-19 20:33:28 +00:00
util.cc Fix -Wsign-compare errors 2025-04-03 09:48:53 +02:00
xml-writer.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00