openresty / lua-resty-balancer

A generic consistent hash implementation for OpenResty/Lua
322 stars 77 forks source link

A memory overread #36

Closed chenjinchaobupt closed 2 years ago

chenjinchaobupt commented 3 years ago

chash.diff.txt

A memory overread occur when index equal to m-1

doujiang24 commented 2 years ago

Thanks, already fixed in https://github.com/openresty/lua-resty-balancer/pull/41