Diff between 18af5f4faf2658e99f91853798bc4c12f32f31f6 and 5e9342ee34ba162d16c25416ee23159070e48f2e
Changed Files
| File | Additions | Deletions | Status |
| src/gatt-database.c | +5 | -0 | modified |
Full Patch
diff --git a/src/gatt-database.c b/src/gatt-database.c
index 481222d..485af04 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -3423,6 +3423,11 @@ static struct external_profile *create_profile(struct gatt_app *app,
goto fail;
}
+ if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY) {
+ DBG("UUIDs wrongly formatted");
+ goto fail;
+ }
+
dbus_message_iter_recurse(&iter, &array);
while (dbus_message_iter_get_arg_type(&array) == DBUS_TYPE_STRING) {