baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.99k stars 886 forks source link

fix use after free in handle_timeout_now_request #471

Closed BusyJay closed 1 month ago

BusyJay commented 3 months ago

Closure maybe invoked before elect_self, which will free request and cause UAF.