mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
- Use ogs_pool_id_calloc() / ogs_pool_id_free() instead of ogs_pool_alloc() / ogs_pool_free() to assign stable pool IDs to connection_t and ogs_sbi_session_t. - Pass pool ID to ogs_timer_add() instead of raw pointer. - In connection_timer_expired() and session_timer_expired(), resolve object via ogs_pool_find_by_id() and safely return if the object has already been freed. - Add safety checks and error logs for invalid IDs and missing objects. This prevents use-after-free or double-free crashes when timer callbacks are triggered after the object has been freed under heavy load.