]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: threads: Handle nbthread == MAX_THREADS.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 27 Jul 2018 15:06:59 +0000 (17:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Jul 2018 15:18:22 +0000 (17:18 +0200)
commit3e12304ae004284e3186b489f398908e59a8574d
tree1047bb1d48aa05360b598d37d6122c2728b98641
parent85d9b84eb14987c9aa012195f09979c56e766447
BUG/MINOR: threads: Handle nbthread == MAX_THREADS.

If nbthread is MAX_THREADS, the shift operation needed to compute
all_threads_mask fails in thread_sync_init(). Instead pass a number
of threads to this function and let it compute the mask without
overflowing.

This should be backported to 1.8.
include/common/hathreads.h
src/hathreads.c