]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: always check that requested alignment matches the type's
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 14:47:17 +0000 (16:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 17:55:30 +0000 (19:55 +0200)
commit6be7b64bb459f759fcf0ff5dbc695c02aa7baf0e
tree5f04581d0dd28db2c2d8a6fd30c9f20b6b30cbb4
parente21bb531cad9e00dcabc325193a35040b27eaa7e
MINOR: pools: always check that requested alignment matches the type's

For pool registrations that are created from the type declaration, we
now have the ability to verify that the requested alignment matches
the type's one. Let's not miss this opportunity, as we've met bugs in
the past that were caused by such mismatches. The principle is simple:
if the type alignment is known, we check that the configured alignment
is at least as large as that one otherwise we refuse to start (since
the code may crash at any moment). Obviously it doesn't crash for now!
src/pool.c