69ed944ce467e3823313215120255ee7ab570fd2
Complete fix for use-after-free bug in uasync tests: Library Changes: - Added uasync_lookup_socket() function for safe socket lookup by FD - Function returns current pointer even after memory reallocation - Maintains full backward compatibility with existing API Test Changes: - Modified test to store file descriptors instead of raw pointers - Uses lookup function to get current pointers during removal - Eliminates stale pointer issues after socket array growth Results: - test_u_async_performance: 25/25 sockets successfully removed (was failing) - test_u_async_comprehensive: PASS - No memory leaks - clean 25/25 socket statistics - All uasync tests now pass without corruption Technical Details: - Root cause: realloc() moved memory, making stored pointers invalid - Solution: Store FDs, lookup current pointers when needed - Minimal changes: only added necessary lookup function - Backward compatible: existing code continues to work
The file is empty.
Languages
C
61.8%
C++
20.3%
Kotlin
9.3%
HTML
5.3%
Python
1.2%
Other
2%