mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Move vCallFlake into EvalState
This fixes a use-after-free bug: 1. s = new EvalState(); 2. callFlake() 3. static vCallFlake now references s 4. delete s; 5. s2 = new EvalState(); 6. callFlake() 7. static vCallFlake still references s 8. crash Nix 2.3 did not have a problem with recreating EvalState.
This commit is contained in:
parent
af94b54db3
commit
8bc76acc7c
2 changed files with 5 additions and 6 deletions
|
@ -100,6 +100,7 @@ public:
|
|||
/* Store used to build stuff. */
|
||||
const ref<Store> buildStore;
|
||||
|
||||
RootValue vCallFlake = nullptr;
|
||||
|
||||
private:
|
||||
SrcToStore srcToStore;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue