Re: [PATCH] libbpf: Change hash_combine parameters from long to unsigned long

From: Yonghong Song
Date: Sat Nov 16 2024 - 13:54:34 EST





On 11/16/24 12:10 AM, Sidong Yang wrote:
The hash_combine() could be trapped when compiled with sanitizer like "zig cc"
or clang with signed-integer-overflow option. This patch parameters and return
type to unsigned long to remove the potential overflow.

Signed-off-by: Sidong Yang <sidong.yang@xxxxxxxxxx>

Acked-by: Yonghong Song <yonghong.song@xxxxxxxxx>