Re: [PATCH 08/28] hw/acpi: Avoid truncating acpi_data_len() to 32-bit

2021-09-08 Thread Igor Mammedov
On Fri, 3 Sep 2021 13:06:42 +0200 Philippe Mathieu-Daudé wrote: > acpi_data_len() returns an unsigned type, which might be bigger > than 32-bit (although it is unlikely such value is returned). > Hold the returned value in an 'unsigned' type to avoid unlikely > size truncation. > >

[PATCH 08/28] hw/acpi: Avoid truncating acpi_data_len() to 32-bit

2021-09-03 Thread Philippe Mathieu-Daudé
acpi_data_len() returns an unsigned type, which might be bigger than 32-bit (although it is unlikely such value is returned). Hold the returned value in an 'unsigned' type to avoid unlikely size truncation. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/virt-acpi-build.c | 2 +-