summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJason Wang2010-10-25 07:39:59 +0200
committerMichael S. Tsirkin2010-10-27 18:54:02 +0200
commitf7c31d6381f2cbac03e82fc23133f6863606edd8 (patch)
treeac33e75ca51852177093bd88b4d84727cf83f1a9 /hw
parentvirtio: sanity-check available index (diff)
downloadqemu-f7c31d6381f2cbac03e82fc23133f6863606edd8.tar.gz
qemu-f7c31d6381f2cbac03e82fc23133f6863606edd8.tar.xz
qemu-f7c31d6381f2cbac03e82fc23133f6863606edd8.zip
net: properly handle illegal fd/vhostfd from command line
When hanlding fd/vhostfd form command line through net_handle_fd_param(), we need to check mon and return value of strtol() otherwise we could get segmentation fault or invalid fd when user type an illegal fd/vhostfd. This patch is based on the suggestions from Luiz Capitulino <lcapitulino@redhat.com>. Signed-off-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions