]> Git Repo - qemu.git/commit - hw/char/virtio-serial-bus.c
virtio-serial: fix segfault on NULL port names
authorAmit Shah <[email protected]>
Wed, 4 Mar 2015 08:59:52 +0000 (14:29 +0530)
committerAmit Shah <[email protected]>
Wed, 11 Mar 2015 11:07:45 +0000 (16:37 +0530)
commitb18a755c4266a340a25ab4118525bd57c3dfc3fa
tree4bb910b7a8a1e0193b1da1c1fed794239d495383
parent4ba4df405c766b7f9e46ef145e140961155348e6
virtio-serial: fix segfault on NULL port names

Commit d0a0bfe6729ef6044d76ea49fafa07e29fa598bd added checks for port
names, but didn't add a check to ensure port->name is non-NULL.  This
results in a SIGSEGV when adding a port when one of the previously-added
ports didn't have the 'name' property set.

https://bugzilla.redhat.com/show_bug.cgi?id=1192775

Reported-by: vivian zhang <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Amit Shah <[email protected]>
hw/char/virtio-serial-bus.c
This page took 0.024791 seconds and 4 git commands to generate.