From bbc4977fedb5ebcf598332bd99c69809fa814683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 3 Apr 2025 09:48:53 +0200 Subject: [PATCH] local-derivation-goal: fix sized comparison when checking sandbox profile length --- src/libstore/unix/build/local-derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/unix/build/local-derivation-goal.cc b/src/libstore/unix/build/local-derivation-goal.cc index ea736d5ba..5616b605b 100644 --- a/src/libstore/unix/build/local-derivation-goal.cc +++ b/src/libstore/unix/build/local-derivation-goal.cc @@ -2235,7 +2235,7 @@ void LocalDerivationGoal::runChild() // We create multiple allow lists, to avoid exceeding a limit in the darwin sandbox interpreter. // See https://github.com/NixOS/nix/issues/4119 // We split our allow groups approximately at half the actual limit, 1 << 16 - const int breakpoint = sandboxProfile.length() + (1 << 14); + const size_t breakpoint = sandboxProfile.length() + (1 << 14); for (auto & i : pathsInChroot) { if (sandboxProfile.length() >= breakpoint) {