From a21da3802b7b037528316b9489f003a2d48d1256 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 4 Mar 2023 20:39:53 +0100 Subject: [PATCH] client-node: the id must be strictly smaller than MAX_AREAS .. or else it points past the allocated array. --- src/modules/module-client-node/client-node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index 0b0469762..701904611 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -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;