mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-10 05:33:54 -04:00
*: Missing bounds checks in POD handling
There were missing bounds checks for ill-formed POD all over the place.
This commit is contained in:
parent
7ac94f1a69
commit
fb315b9050
7 changed files with 104 additions and 19 deletions
|
|
@ -43,9 +43,8 @@ spa_pod_simplify_merge(struct spa_pod_builder *b, const struct spa_pod *pod1, co
|
|||
struct spa_pod_frame f[2];
|
||||
int res = 0, count = 0;
|
||||
|
||||
if (pod1->type != pod2->type)
|
||||
return -ENOTSUP;
|
||||
if (pod1->type != SPA_TYPE_Object)
|
||||
if (!spa_pod_is_object(pod1) ||
|
||||
!spa_pod_is_object(pod2))
|
||||
return -ENOTSUP;
|
||||
|
||||
o1 = (const struct spa_pod_object*) pod1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue