adapter: handle builder overflow

This commit is contained in:
Wim Taymans 2025-04-02 10:39:34 +02:00
parent ce6d2fce9a
commit 1388f16c47
2 changed files with 4 additions and 0 deletions

View file

@ -997,6 +997,8 @@ found:
format = merge_objects(this, &b, SPA_PARAM_Format,
(struct spa_pod_object*)format,
(struct spa_pod_object*)def);
if (format == NULL)
return -ENOSPC;
spa_pod_fixate(format);

View file

@ -964,6 +964,8 @@ found:
format = merge_objects(this, &b, SPA_PARAM_Format,
(struct spa_pod_object*)format,
(struct spa_pod_object*)def);
if (format == NULL)
return -ENOSPC;
spa_pod_fixate(format);