gkdbus: Fix underflow and unreachable code bug 45/313245/2 backup/glib-2.78.4_20240903 accepted/tizen/unified/20240626.155256 accepted/tizen/unified/dev/20240701.073054 accepted/tizen/unified/toolchain/20240812.132516 accepted/tizen/unified/x/20240627.011901 accepted/tizen/unified/x/asan/20240813.230809
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 20 Jun 2024 09:06:28 +0000 (18:06 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Thu, 20 Jun 2024 09:25:09 +0000 (18:25 +0900)
commitbf1a528986a5edf1c89925d26a2376c959db89ee
treefd0ac376c4d54a6768b649e54e59a78fb785a77c
parent7b122811161b6afc037b9a74680033e32295f40c
gkdbus: Fix underflow and unreachable code bug

Fix bugs that potentially cause underflow or unreachable code, so
update kdbus2.patch file.

Third input argument of g_array_remove_range() requires unsigned int type,
so negative value can cause underflow bug.

g_kdbus_msg_append_payload_vec() and g_kdbus_msg_append_payload_memfd() always
return TRUE, so add_body_vectors() return value is always TRUE.
In conclusion, error handler code for add_body_vectors() is useless, so remove it.

Change-Id: I1bbe9b60c5699db79a7821896397b3c2916087cc
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
packaging/kdbus2.patch