]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats-file: use explicit unsigned integer bitshift for user slots
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 8 Sep 2025 09:25:39 +0000 (11:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Sep 2025 11:38:49 +0000 (13:38 +0200)
commitb9ef55d56dfc90db6ab1d845710d7e028ba50029
tree3b4c1c0e28a367f90f891d845af4b30f0364cef8
parent9272b8ce7404942f7af563983694937a5e6b7c55
MINOR: stats-file: use explicit unsigned integer bitshift for user slots

As reported in GH #3104, there remained a place where (1 << shift was
used to set or remove bits from uint64_t users bitfield. It is incorrect
and could lead to bugs for values > 32 bits.

Instead, let's use 1ULL to ensure the operation remains 64bits consistent.

No backport needed.
src/stats-file.c