SQUASH/Fix unsigned integer underflow
get_leader_len: change return type to size_t