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
..
2025-02-03 19:07:20 +01:00
2024-11-12 15:34:24 +01:00
2024-07-02 09:23:24 -04:00
2024-11-22 18:05:53 +03:00
2023-04-17 11:41:50 +02:00
2024-03-25 19:21:25 +01:00
2024-07-12 14:54:18 -04:00
2025-01-24 17:04:02 +01:00
2024-09-30 11:50:25 +02:00
2024-06-10 12:46:04 +02:00
2024-07-11 11:35:58 +02:00
2024-07-22 17:34:28 +02:00
2024-08-20 17:19:17 +02:00
2024-10-01 14:55:22 +02:00
2024-11-20 17:54:58 +03:00
2025-02-17 11:36:47 +01: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
2020-06-18 22:11:26 +00:00
2023-03-31 23:19:44 -04:00
2024-09-19 21:04:01 +02:00
2024-10-06 13:43:29 +02:00
2024-09-19 21:04:01 +02:00
2025-01-24 17:04:02 +01:00
2024-12-09 22:04:21 +01:00
2024-02-01 16:39:38 -08:00
2024-07-15 19:56:40 +02:00
2024-12-17 22:00:34 +01:00
2025-01-04 16:14:06 +01:00
2025-01-31 22:53:42 +11:00
2024-07-02 09:23:24 -04:00
2024-12-09 16:54:42 +01:00
2025-02-21 14:36:39 +00:00
2025-02-21 14:36:39 +00:00
2025-02-18 11:41:35 +01:00
2024-11-27 21:41:47 +01:00
2025-02-06 16:33:43 +01:00
2025-02-19 21:24:26 -05:00
2024-07-17 13:31:31 +02:00
2024-07-12 15:37:54 +02:00
2025-02-21 14:36:39 +00:00
2024-03-06 23:48:42 +01:00
2024-07-24 16:52:04 +02:00
2024-01-11 16:34:36 -08:00
2024-12-17 22:00:34 +01:00
2024-10-07 02:05:53 +02:00
2024-02-08 11:58:25 -08:00
2024-02-20 10:01:13 -08:00
2024-04-13 17:35:15 +02:00
2024-04-17 12:26:10 -04:00
2024-07-29 15:30:37 +02:00
2024-12-31 20:33:28 +01:00
2024-12-31 20:33:28 +01:00
2024-07-11 17:43:10 +02:00
2023-04-21 01:05:49 -04:00
2025-01-04 16:14:06 +01:00