]> Git Repo - qemu.git/commit
vl.c: numa_add(): Validate nodeid before using it
authorEduardo Habkost <[email protected]>
Mon, 4 Feb 2013 18:27:49 +0000 (16:27 -0200)
committerAnthony Liguori <[email protected]>
Mon, 4 Feb 2013 20:38:33 +0000 (14:38 -0600)
commite4ce85b25838694d2d7396b5e969eb4830329631
tree6721d9965482bb305cbaf943f55c584ef7237037
parentca4c6d363153f19abf3ffdf0ca1532daa581867d
vl.c: numa_add(): Validate nodeid before using it

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 Habkost <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
vl.c
This page took 0.024685 seconds and 4 git commands to generate.