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:
Demi Marie Obenour 2025-07-04 13:52:40 -04:00 committed by Wim Taymans
parent edef57f6c3
commit d37bdf5cbf

View file

@ -90,6 +90,8 @@ spa_tag_info_parse(const struct spa_tag_info *info, struct spa_dict *dict, struc
SPA_POD_String(&value),
NULL) < 0)
break;
if (key == NULL || value == NULL)
return -EINVAL;
items[n].key = key;
items[n].value = value;
}