summaryrefslogtreecommitdiffstats
path: root/xen-hvm.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2016-01-06 16:32:22 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:24 -0600
commit5d96518b1f119dd1301a96ce6066b6053c689de5 (patch)
tree39d028a6ec1b2a0d6f2dc8a933a3d83dc80fcfc5 /xen-hvm.c
parent695f6b51343a40bb27368eea288b7cd9fa690c0a (diff)
downloadhqemu-5d96518b1f119dd1301a96ce6066b6053c689de5.zip
hqemu-5d96518b1f119dd1301a96ce6066b6053c689de5.tar.gz
xenfb.c: avoid expensive loops when prod <= out_cons
If the frontend sets out_cons to a value higher than out_prod, it will cause xenfb_handle_events to loop about 2^32 times. Avoid that by using better checks at the beginning of the function. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reported-by: Ling Liu <liuling-it@360.cn>
Diffstat (limited to 'xen-hvm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud