spa: use safe IO_Control parsing

The IO_Control areas are in shaed memory and need to use the parser to
safely extract the info.
This commit is contained in:
Wim Taymans 2025-07-31 11:23:30 +02:00
parent ede1924ded
commit f4ab704948
4 changed files with 75 additions and 37 deletions

View file

@ -1569,8 +1569,7 @@ done:
}
static int
spa_v4l2_set_control(struct impl *this, uint32_t id,
const struct spa_pod_prop *prop)
spa_v4l2_set_control(struct impl *this, const struct spa_pod_prop *prop, const void *body)
{
struct port *port = &this->out_ports[0];
struct spa_v4l2_device *dev = &port->dev;