Wang Yong-chao

Results 4 issues of Wang Yong-chao

Hi, there I find code in [here](https://github.com/FRRouting/frr/blob/master/bfdd/control.c#L415) may has a potential uncontrolled memory allocation issue. Here are details. ![bug](https://user-images.githubusercontent.com/8779184/157201241-14b1aab5-7883-43b2-a9fc-11a1604dc63b.jpg) Label 1 (read msg but no limit to its length) ->...

bug
bfd
security

# Labels Suggestion - `bug` - `memory-leak` - `critical` ## Issue Body --- ### Description TracyVector has a critical memory leak when used with non-trivially-destructible types. The destructor only calls...

## Summary This PR fixes a memory leak in `TracyVector` where element destructors are not called for non-trivially-destructible types. The bug affects production code using nested containers like `Vector`. ##...

## Description Replace std::map with std::unordered_map for _peer_to_session to achieve O(1) lookup performance instead of O(log n). The peer_t type (ENetPeer*) is a pointer, which has native hash support. All...