mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
modules: fix missing free/close and length checks
Fix some missing free and close. Fix not checking length of received netjack data.
This commit is contained in:
parent
baadda3b67
commit
dc618d37c6
3 changed files with 13 additions and 8 deletions
|
|
@ -815,6 +815,8 @@ static int netjack2_recv_midi(struct netjack2_peer *peer, struct nj2_packet_head
|
|||
|
||||
if ((len = recv(peer->fd, buffer, packet_size, 0)) < 0)
|
||||
return -errno;
|
||||
if ((size_t)len < sizeof(*header))
|
||||
return -EINVAL;
|
||||
|
||||
active_ports = peer->params.recv_midi_channels;
|
||||
if (active_ports == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue