Files
nix/src/libexpr
Sergei Zimmerman af2ddfdb3b libexpr: Fix use-after-free of StaticEnv::up
It's not very clear what the ownership model is here, but one thing
is certain: `.up` can't be destroyed before the StaticEnv that refers
to it is.

Changing a non-owning pointer to taking shared ownership of the parent
`StaticEnv` prevents the `.up` from being freed.

I'm not a huge fan of the inverted ownership, where child `StaticEnv`
takes a refcount of the parent, but this seems like the least intrusive
way to fix the use-after-free.

This shouldn't cause any shared_ptr cycles to appear (hopefully).
2025-02-21 14:36:39 +00:00
..
2024-11-12 15:34:24 +01:00
2024-07-02 09:23:24 -04:00
2025-01-24 17:04:02 +01:00
2024-06-10 12:46:04 +02:00
2024-07-11 11:35:58 +02:00
2025-02-17 19:29:01 +01:00
2025-02-19 21:24:26 -05:00
2025-02-19 21:24:26 -05:00
2025-01-24 17:04:02 +01:00
2025-02-19 21:24:26 -05:00
2024-07-17 13:31:31 +02:00
2024-02-08 11:58:25 -08:00