dbus-marshal-gavariant : Update offset bytes size whenever message is appended 70/78270/1
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Tue, 5 Jul 2016 02:18:17 +0000 (11:18 +0900)
committerJonghwa Lee <jonghwa3.lee@samsung.com>
Tue, 5 Jul 2016 03:52:11 +0000 (12:52 +0900)
commit465f2b21b995d126e3175e3c9434720fe0ea272a
treeab347b0edf76fec01bf892e962a18818185e8505
parent2d2a205fc8c6b2e7f2814a0c5233d967301cf880
dbus-marshal-gavariant : Update offset bytes size whenever message is appended

check_offsets_in_body_for_adding() is called only when former data is not fixed
sized data. If former written data is fixed size one (e.g. integer, boolean..)
it skips to update offset bytes size even message body size exceeds its limits.
It results invalid memory access on reciever-side.

This patch fixes it to update offset bytes size whenever message is appended.

Change-Id: I2b94955d40debc5129b5f3c193e197efb542141b
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
dbus/dbus-marshal-gvariant.c