diff options
| author | Jens Osterkamp | 2010-04-12 10:51:01 +0200 |
|---|---|---|
| committer | Aurelien Jarno | 2010-05-18 19:49:16 +0200 |
| commit | e23a22e620e84f42bdbd473b82672654e7c8de73 (patch) | |
| tree | ddc9cebadadc2810e1228759ab02ea575aa4d9ab /linux-user/linux_loop.h | |
| parent | linux-user: rlimit conversion between host and target. (diff) | |
| download | qemu-e23a22e620e84f42bdbd473b82672654e7c8de73.tar.gz qemu-e23a22e620e84f42bdbd473b82672654e7c8de73.tar.xz qemu-e23a22e620e84f42bdbd473b82672654e7c8de73.zip | |
qemu-sockets: avoid strlen of NULL pointer
If the user wants to create a chardev of type socket but forgets to give a
host= option, qemu_opt_get returns NULL. This NULL pointer is then fed into
strlen a few lines below without a check which results in a segfault.
This fixes it.
Signed-off-by: Jens Osterkamp <jens@linux.vnet.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions
