GVariant: fix alignment of elements in array 29/179929/2 accepted/tizen/4.0/unified/20180524.131144 submit/tizen_4.0/20180524.054843
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 23 May 2018 10:49:48 +0000 (12:49 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Wed, 23 May 2018 10:55:14 +0000 (12:55 +0200)
commit23ff0ed3a5205afd2067514b25aed3aa5c51f4cc
tree57329447a4576354463d56c472f2e4833de1518e
parent2a318a5abf412616d4e92f3774c7f474e5c53349
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: Ic24be50e978532da4695a2a35731302011e20871
dbus/dbus-marshal-gvariant.c
dbus/dbus-marshal-recursive.c