Files
nix/src/libcmd
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-20 21:07:22 +01:00
2025-01-23 16:34:35 +01:00
2024-02-08 11:01:41 -05:00
2023-11-05 12:20:02 -05:00
2024-10-08 16:35:53 +02:00
2024-07-24 12:54:40 +02:00
2024-07-02 09:26:22 -04:00