Murilo Opsfelder Araujo fbd5c4c0db block/ssh: fix possible segmentation fault when .desc is not null-terminated
This patch prevents a possible segmentation fault when .desc members are checked
against NULL.

The ssh_runtime_opts was added by commit
8a6a80896d6af03b8ee0c17cdf37219eca2588a7 ("block/ssh: Use QemuOpts for runtime
options").

This fix was inspired by
http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg00883.html.

Fixes: 8a6a80896d6af03b8ee0c17cdf37219eca2588a7 ("block/ssh: Use QemuOpts for runtime options")
Cc: Max Reitz <mreitz@redhat.com>
Cc: Eric Blake <eblake@redhat.com>
Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
2018-01-31 22:37:00 -05:00
..
2017-10-26 14:45:57 +02:00
2017-12-22 15:05:32 +01:00
2017-12-18 15:44:39 -05:00
2017-12-18 10:54:13 -05:00
2018-01-22 14:02:33 +00:00
2018-01-26 09:58:46 -06:00
2017-11-17 18:21:31 +01:00
2018-01-23 12:34:43 +01:00
2017-12-20 11:30:55 +00:00
2017-08-31 12:29:07 +02:00
2018-01-23 12:34:43 +01:00
2017-08-31 12:29:07 +02:00
2017-11-17 18:21:31 +01:00