From c54fdb76f8c1d14a2105f5489b5681af1c5345a5 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Fri, 4 Jul 2025 13:53:23 -0400 Subject: [PATCH] protocol-native: check for NULL strings SPA_POD_String allows NULL strings, so check for them. --- src/modules/module-client-device/protocol-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-client-device/protocol-native.c b/src/modules/module-client-device/protocol-native.c index 59d16e31f..cbcca0c9a 100644 --- a/src/modules/module-client-device/protocol-native.c +++ b/src/modules/module-client-device/protocol-native.c @@ -33,6 +33,8 @@ static inline int parse_item(struct spa_pod_parser *prs, struct spa_dict_item *i SPA_POD_String(&item->value), NULL)) < 0) return res; + if (item->key == NULL || item->value == NULL) + return -EINVAL; if (spa_strstartswith(item->value, "pointer:")) item->value = ""; return 0;