GVariant: fix dbus_message_copy() 53/266253/1 accepted/tizen/6.5/unified/20211111.115741 submit/tizen_6.5/20211110.021234
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 5 Nov 2021 11:28:29 +0000 (12:28 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 10 Nov 2021 01:41:59 +0000 (01:41 +0000)
commit8192754c59f456978249ddf7e7e28e070b0e2006
treeb13732b14d82590a337b99f021b5ee8c8f2a5b09
parent0719caf88e6626702b6cce9fe84656255a0cb23c
GVariant: fix dbus_message_copy()

dbus_message_copy() did not take into account differences
between locked and unlocked GVariant messages.

This commit adds support for converting from locked to unlocked
GVariant message when a copy is made.

Additionally:
- it fixes initialization of the read iterator for unlocked messages;
- locking or warning on such initialization is no longer needed.

Change-Id: I4d316e1b1ae4e9af194ddc329833147c8c6a8055
(cherry picked from commit 4a9436ec831613139a9291956901813f3baf25d2)
dbus/dbus-marshal-gvariant.c
dbus/dbus-marshal-gvariant.h
dbus/dbus-message.c