diff --git a/src/modules/module-protocol-pulse/message.c b/src/modules/module-protocol-pulse/message.c index 9423a676e..6adf00bad 100644 --- a/src/modules/module-protocol-pulse/message.c +++ b/src/modules/module-protocol-pulse/message.c @@ -122,6 +122,9 @@ static int read_props(struct message *m, struct pw_properties *props, bool remap TAG_INVALID)) < 0) return res; + if (length != size) + return -EINVAL; + if (remap && (map = str_map_find(props_key_map, NULL, key)) != NULL) { key = map->pw_str; if (map->child != NULL &&