mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pod: check for NULL strings in tag utils
SPA_POD_String allows SPA_TYPE_None PODs and turns them to NULL, so check for them.
This commit is contained in:
parent
edef57f6c3
commit
d37bdf5cbf
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ spa_tag_info_parse(const struct spa_tag_info *info, struct spa_dict *dict, struc
|
||||||
SPA_POD_String(&value),
|
SPA_POD_String(&value),
|
||||||
NULL) < 0)
|
NULL) < 0)
|
||||||
break;
|
break;
|
||||||
|
if (key == NULL || value == NULL)
|
||||||
|
return -EINVAL;
|
||||||
items[n].key = key;
|
items[n].key = key;
|
||||||
items[n].value = value;
|
items[n].value = value;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue