mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-03 06:47:04 -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
|
|
@ -280,7 +280,7 @@ static int check_advertise(struct adp *adp, uint64_t now)
|
|||
if (d == NULL)
|
||||
return -1;
|
||||
|
||||
entity = d->ptr;
|
||||
entity = descriptor_body(d);
|
||||
entity_id = be64toh(entity->entity_id);
|
||||
|
||||
if ((e = find_entity_by_id(adp, entity_id)) != NULL) {
|
||||
|
|
@ -290,7 +290,7 @@ static int check_advertise(struct adp *adp, uint64_t now)
|
|||
}
|
||||
|
||||
d = server_find_descriptor(server, AVB_AEM_DESC_AVB_INTERFACE, 0);
|
||||
avb_interface = d ? d->ptr : NULL;
|
||||
avb_interface = d ? descriptor_body(d) : NULL;
|
||||
|
||||
pw_log_info("entity %s advertise",
|
||||
avb_utils_format_id(buf, sizeof(buf), entity_id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue