GVariant: fix alignment of elements in array 31/179931/5
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 23 May 2018 10:49:48 +0000 (12:49 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 24 May 2018 10:40:23 +0000 (12:40 +0200)
commit9df0e8caebfc7739155d415d6823362cb9d801bf
tree1e3e48129c543e0d8cacc2b2425a57ce812e40f4
parentb102d4e86ce31f7a0f2021d19c04151e6f03e8c0
GVariant: fix alignment of elements in array

This patch fixes two related bugs:
1. off-by-one in checking size and alignment of the next element
   in_dbus_reader_get_signature_fixed_size()
2. alignment requirements were not considered at all while iterating
   over array of variable size elements in array_reader_next().

Change-Id: Ibd9e1f3d11fbcd3ef0e6dbaa024e66b2568709d5
dbus/dbus-marshal-gvariant.c
dbus/dbus-marshal-recursive.c