Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
p2p/discv5: make idx bounds checking more sound #17571
in golang, for convenience, return type of
however, the value of
there's a previous fix #17274, because converting idx to int can bypass the check if idx overflows int.
I believe my change will make the checking logic more sound.