mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse-server: check message size
This commit is contained in:
parent
27a5ebb87e
commit
0af8c0c045
1 changed files with 2 additions and 1 deletions
|
|
@ -357,7 +357,8 @@ static struct message *message_alloc(struct impl *impl, uint32_t channel, uint32
|
|||
msg->stat->n_allocated++;
|
||||
msg->stat->n_accumulated++;
|
||||
}
|
||||
ensure_size(msg, size);
|
||||
if (ensure_size(msg, size) < 0)
|
||||
return NULL;
|
||||
spa_zero(msg->extra);
|
||||
msg->channel = channel;
|
||||
msg->offset = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue