mirror of
https://github.com/acpica/acpica/
synced 2024-12-26 20:29:48 +03:00
Tests: Fix possible buffer overrun in API test.
acpi_pci_link_set.
This commit is contained in:
parent
7c654ded14
commit
ed36d8b39c
@ -3150,8 +3150,8 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
|
||||
if (!link || !irq)
|
||||
return -1;
|
||||
|
||||
memset(resource, 0, sizeof(*resource) + 1);
|
||||
buffer.Length = sizeof(*resource) + 1;
|
||||
memset(resource, 0, sizeof(resource_obj));
|
||||
buffer.Length = sizeof(resource_obj);
|
||||
buffer.Pointer = resource;
|
||||
|
||||
switch (link->irq.resource_type) {
|
||||
|
Loading…
Reference in New Issue
Block a user