[Qemu-devel] [PATCH 5/8] vl.c: numa_add(): Validate nodeid before using it

2013-02-04 Thread Eduardo Habkost
Without this check, QEMU will corrupt memory if a too-large nodeid is provided in the command-line. e.g.: -numa node,mem=...,cpus=...,nodeid=65 This changes nodenr to unsigned long long, to avoid integer conversion issues when converting the strtoull() result to int. Signed-off-by: Eduardo Hab

[Qemu-devel] [PATCH 5/8] vl.c: numa_add(): Validate nodeid before using it

2013-01-16 Thread Eduardo Habkost
Without this check, QEMU will corrupt memory if a too-large nodeid is provided in the command-line. e.g.: -numa node,mem=...,cpus=...,nodeid=65 This changes nodenr to unsigned long long, to avoid integer conversion issues when converting the strtoull() result to int. Signed-off-by: Eduardo Hab

Re: [Qemu-devel] [PATCH 5/8] vl.c: numa_add(): Validate nodeid before using it

2013-01-16 Thread Eric Blake
On 01/16/2013 08:24 AM, Eduardo Habkost wrote: > Without this check, QEMU will corrupt memory if a too-large nodeid is > provided in the command-line. e.g.: > > -numa node,mem=...,cpus=...,nodeid=65 > > This changes nodenr to unsigned long long, to avoid integer conversion > issues when convert

[Qemu-devel] [PATCH 5/8] vl.c: numa_add(): Validate nodeid before using it

2013-01-16 Thread Eduardo Habkost
Without this check, QEMU will corrupt memory if a too-large nodeid is provided in the command-line. e.g.: -numa node,mem=...,cpus=...,nodeid=65 This changes nodenr to unsigned long long, to avoid integer conversion issues when converting the strtoull() result to int. Signed-off-by: Eduardo Hab