• C
    qemu: Fix crash on failed VM startup · 58406dd5
    Cole Robinson 提交于
    If VM startup fails early enough (can't find a referenced USB device),
    libvirtd will crash trying to clear the VNC port bit, since port = 0,
    which overflows us out of the bitmap bounds.
    
    Fix this by being more defensive in the bitmap operations, and only
    clearing a previously set VNC port.
    Signed-off-by: NCole Robinson <crobinso@redhat.com>
    58406dd5
qemu_driver.c 374.5 KB