mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
client-node: the id must be strictly smaller than MAX_AREAS
.. or else it points past the allocated array.
This commit is contained in:
parent
39ce32985b
commit
a21da3802b
1 changed files with 1 additions and 1 deletions
|
|
@ -1354,7 +1354,7 @@ static int port_init_mix(void *data, struct pw_impl_port_mix *mix)
|
|||
m->valid = false;
|
||||
return -errno;
|
||||
}
|
||||
if (mix->id > MAX_AREAS) {
|
||||
if (mix->id >= MAX_AREAS) {
|
||||
pw_map_remove(&impl->io_map, mix->id);
|
||||
m->valid = false;
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue