image-policy: Fix strv size calculation
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 27 Aug 2024 13:26:20 +0000 (15:26 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 30 Aug 2024 10:12:53 +0000 (12:12 +0200)
commit11781f37aca1703a2d8e4e470a44f911fcf9c7d4
tree6989a4a0dd9d96910c774730c810f482eee5f8f1
parentc5730846fe78518fb9fdabaedfd6f20eb5568582
image-policy: Fix strv size calculation

We want the logarithm of the next power of two, which is the same
as the mask + 1, so add one to the mask to make sure the size is
sufficient to fit all flags.
src/shared/image-policy.c