On 27/11/24 12:40, Daniel P. Berrangé wrote:
The 'maxmem' parameter parsed on the command line is held in uint64_t
and then assigned to the MachineState field that is 'ram_addr_t'. This
assignment will wrap on 32-bit hosts, silently changing the user's
config request if it were over-sized.

Improve the existing diagnositics for validating 'size', and add the
same diagnostics for 'maxmem'

Signed-off-by: Daniel P. Berrangé <[email protected]>
---
  hw/core/machine.c | 10 +++++++++-
  1 file changed, 9 insertions(+), 1 deletion(-)

Patch queued, thanks.

Reply via email to