aboutsummaryrefslogtreecommitdiff
path: root/migration-exec.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2009-07-10 13:33:42 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-10 12:25:36 -0500
commitcf57298af5336df2aece47ef16c290a3a81457dd (patch)
tree41b562b598b46c29a3c33a9839debe73a1588850 /migration-exec.c
parent230d4fa48bd64dbc07b509e0eb0bbc885ddf4cc8 (diff)
downloadqemu-cf57298af5336df2aece47ef16c290a3a81457dd.zip
qemu-cf57298af5336df2aece47ef16c290a3a81457dd.tar.gz
qemu-cf57298af5336df2aece47ef16c290a3a81457dd.tar.bz2
qemu-io: better input validation for vector-based commands
Fix up a couple of issues with validating the input of the various length arguments for the vectored I/O commands: - do the alignment check on each length instead the always 0 count argument - use a long long varibale for the cvtnum return value so that we can check wether it wasn't a number - check for a too large argument instead of truncating it Also refactor it into a common helper for all four calers and avoid parsing the numbers twice. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'migration-exec.c')
0 files changed, 0 insertions, 0 deletions