pulse-server: ignore unsaveable values when deserializing property list

PulseAudio's property list can store arbitrary data, but
pw_properties can only store null-terminated strings.
So for the time being, ignore those values that don't
have null-terminators or have zero bytes inside.
This commit is contained in:
Barnabás Pőcze 2024-03-19 17:01:00 +01:00 committed by Wim Taymans
parent 12bddf6521
commit 3fa92bbd15

View file

@ -125,6 +125,9 @@ static int read_props(struct message *m, struct pw_properties *props, bool remap
if (length != size)
return -EINVAL;
if (strnlen(data, size) != size - 1)
continue;
if (remap && (map = str_map_find(props_key_map, NULL, key)) != NULL) {
key = map->pw_str;
if (map->child != NULL &&