1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 09:49:36 +01:00

Merge pull request #14156 from NixOS/fix-ub

treewide: Squash some user-after-free bugs
This commit is contained in:
John Ericson 2025-10-05 16:49:22 -04:00 committed by GitHub
commit 34bca9212a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -272,9 +272,10 @@ Goal::Co DerivationGoal::repairClosure()
bmRepair));
}
bool haveWaitees = !waitees.empty();
co_await await(std::move(waitees));
if (!waitees.empty()) {
if (haveWaitees) {
trace("closure repaired");
if (nrFailed > 0)
throw Error(