]> git.proxmox.com Git - mirror_qemu.git/commit
spapr-vty: Fix bad assert() statement
authorThomas Huth <thuth@redhat.com>
Thu, 10 Nov 2016 20:16:01 +0000 (21:16 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 14 Nov 2016 23:08:43 +0000 (10:08 +1100)
commit7bacfd7f7289192c83330adceef9c38649c9acf9
treee6ab0ca4f062374a9f2d2b1698cb1e59678ee30c
parent5310799a8b687a6cf0b5dbabaa3b6ddc8a6a7a1a
spapr-vty: Fix bad assert() statement

When using the serial console in the GTK interface of QEMU (and
QEMU has been compiled with CONFIG_VTE), it is possible to trigger
the assert() statement in vty_receive() in spapr_vty.c by pasting
a chunk of text with length > 16 into the QEMU window.
Most of the other serial backends seem to simply drop characters
that they can not handle, so I think we should also do the same in
spapr-vty to fix this issue.

Buglink: https://bugs.launchpad.net/qemu/+bug/1639322
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/char/spapr_vty.c