]> git.ipfire.org Git - thirdparty/systemd.git/commit
mempool: fix tile alignment check
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Feb 2023 09:41:47 +0000 (10:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Feb 2023 13:11:31 +0000 (14:11 +0100)
commit9b47b18a1a53ad7d8d579bdcd6ca5af84c401f4a
tree98f4718e897d62e72f0767f4648d8909f0e72ea4
parentccacde77f32e61422049e587097d8c0c7217e3a5
mempool: fix tile alignment check

We should check alignment *after* determining the pointer points into
our pool, not before. Otherwise might might end up checking alignment of
the pointer relative to our base, even though it is taken relative to
some other base.

Follow-up for: a2b052b29f8bc141e94a4af95d1653a38a57eaeb
See: https://github.com/systemd/systemd/pull/26393#issuecomment-1442295012
src/basic/mempool.c