Re: [Qemu-devel] [PATCH] qemu-char: Check for missing backend name

2011-02-20 Thread Aurelien Jarno
On Sat, Jan 22, 2011 at 01:07:26PM +, Stefan Hajnoczi wrote: > 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 > >

[Qemu-devel] [PATCH] qemu-char: Check for missing backend name

2011-01-22 Thread Stefan Hajnoczi
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: