You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix use-after-free: copy cache data while holding lock
The matched_ep pointer referenced data inside route_cache_list that
could be invalidated by another thread (via invalidate_route_cache or
LRU eviction) after the cache mutex was released.
Fix by copying url_pars and chunk_positions vectors while holding the
cache lock, so parameter extraction afterwards uses owned data.
For cache miss path, the registered_resources_mutex shared lock is
still held so direct reference is safe, but copy for consistency.
0 commit comments