« Previous | Next » 

Revision 1bbd185f

ID1bbd185fa826a2da7c6089b968f9f7d08438c2c8

Added by Stefan Hajnoczi about 13 years ago

qemu-char: Check for missing backend name

Check if the backend option is missing before searching the backend
table. This fixes a NULL pointer dereference when QEMU is invoked with
the following invalid command-line:

$ qemu -chardev id=foo,path=/tmp/socket

Previously QEMU would segfault, now it produces this error message:

chardev: "foo" missing backend

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Aurelien Jarno <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences