bus-message: fix gvariant array elements alignment computing
authorAdrian Szyndela <adrian.s@samsung.com>
Mon, 16 Mar 2020 11:08:04 +0000 (12:08 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:47 +0000 (16:37 +0100)
commitf387ca0573f453f3156ae0117e5685a9fbf3b1e5
tree0cf2e5941b693626ff1dcc7905967b94f27251ab
parent901fefc15cc3d4f14a8bbdea632a0ad28bbc61af
bus-message: fix gvariant array elements alignment computing

Commit f88214cf9d66c93f4d22c4c8980de9ee3ff45bab introduced correction
of computing of variable sized elements of arrays. However,
alignment was taken from outer signature instead of type of elements
in the array. For example, for signature "a(sasbttttuii)"
the alignment of elements of the inner array ("as"; should be 1) was computed
from the alignment of "sasbttttuii" (which is 8).

This commit corrects the alignment source.
src/libsystemd/sd-bus/bus-message.c