Shannon Zhao 6e3e723966 ARM: ACPI: Fix use-after-free due to memory realloc
acpi_data_push uses g_array_set_size to resize the memory size. If there
is no enough contiguous memory, the address will be changed. So previous
pointer could not be used any more. It must update the pointer and use
the new one.

Also, previous codes wrongly use le32 conversion of iort->node_offset
for subsequent computations that will result incorrect value if host is
not litlle endian. So use the non-converted one instead.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 1527663951-14552-1-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-05-31 16:32:35 +01:00
..
2018-05-24 11:30:59 +01:00
2018-05-24 10:42:13 +02:00
2018-03-01 11:05:45 +00:00
2018-03-02 13:45:50 -06:00
2018-05-24 11:30:59 +01:00
2018-05-29 11:28:46 +01:00
2018-05-10 10:25:15 +01:00
2018-03-02 13:45:50 -06:00
2018-02-19 13:03:24 +02:00