composefs: Ensure buffer is suitably aligned for struct fsverity_digest
authorSimon McVittie <smcv@debian.org>
Thu, 14 Nov 2024 09:57:36 +0000 (09:57 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 14 Nov 2024 13:55:11 +0000 (13:55 +0000)
commit67ed2acad47642c5253d66aa70b5035687ed5728
tree596b98db48b261dce315d1fb33906cf4c9da1fd5
parent8705495bc530ca4e8f8422eb6df9e56ac32ce68b
composefs: Ensure buffer is suitably aligned for struct fsverity_digest

struct fsverity_digest starts with a __u16, so it will normally require
16-bit alignment, which is not guaranteed for a char array.

Resolves: https://github.com/ostreedev/ostree/issues/3339
Signed-off-by: Simon McVittie <smcv@debian.org>
src/libostree/ostree-repo-composefs.c