mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-05 06:46:28 -04:00
milan-avb: move teh descriptor FAM at the end of the structure to avoid overflow
This commit is contained in:
parent
4d33f57325
commit
0bf4864d84
14 changed files with 126 additions and 204 deletions
|
|
@ -115,7 +115,7 @@ static int handle_read_descriptor_common(struct aecp *aecp, int64_t now, const v
|
|||
|
||||
memcpy(buf, m, len);
|
||||
|
||||
memcpy(buf + size, desc->ptr, desc->size);
|
||||
memcpy(buf + size, descriptor_body(desc), desc->size);
|
||||
size += desc->size;
|
||||
psize += desc->size;
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ static int handle_get_avb_info_common(struct aecp *aecp, int64_t now,
|
|||
if (len < 0 || (size_t)len > sizeof(buf))
|
||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_BAD_ARGUMENTS, m, len);
|
||||
|
||||
avb_interface = desc->ptr;
|
||||
avb_interface = descriptor_body(desc);
|
||||
|
||||
memcpy(buf, m, len);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue