summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanghyeok.oh <sanghyeok.oh@samsung.com>2019-07-01 17:42:36 +0900
committersanghyeok.oh <sanghyeok.oh@samsung.com>2019-07-01 17:42:42 +0900
commit66f3ccd43629aa7ce4fb44bc7474603ef108aa52 (patch)
tree60d5411a213742e44666464541c9b6f8c7122979
parent7ef5f3b1b46ab773eb31bd36f17d9b770b4e9745 (diff)
downloaddbus-66f3ccd43629aa7ce4fb44bc7474603ef108aa52.tar.gz
dbus-66f3ccd43629aa7ce4fb44bc7474603ef108aa52.tar.bz2
dbus-66f3ccd43629aa7ce4fb44bc7474603ef108aa52.zip
fix Undefined Behavior Sanitizer error. Change-Id: If3b68e68d4de753d0e66c0eeb07f626431057cbf Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
-rw-r--r--dbus/dbus-marshal-gvariant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-marshal-gvariant.c b/dbus/dbus-marshal-gvariant.c
index d9af97a1..85e53cdf 100644
--- a/dbus/dbus-marshal-gvariant.c
+++ b/dbus/dbus-marshal-gvariant.c
@@ -47,7 +47,7 @@ _dbus_get_gvariant_header_signature_str (void)
static dbus_bool_t
append_sized_value (DBusString *str,
- size_t value,
+ dbus_uint64_t value,
size_t value_size)
{
/* always write as little endian */
@@ -55,7 +55,7 @@ append_sized_value (DBusString *str,
for (i = 0; i < value_size; i++)
{
size_t move = 8 * i;
- size_t mask = 0xFF << move;
+ dbus_uint64_t mask = 0xFFull << move;
if (!_dbus_string_append_byte(str, (value & mask) >> move))
return FALSE;
}