]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: Fix boundary check in hvmemul_insn_fetch()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jul 2017 18:48:43 +0000 (19:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Jul 2017 10:39:57 +0000 (11:39 +0100)
commit5a992b670bff697c40b513c9e037598ba35ca7d4
tree3869d8fca4d9869025c68167e85522214bcaf4dc
parenta63334ef13e4a43f1265c9117216cd5ae1bdc659
x86/hvm: Fix boundary check in hvmemul_insn_fetch()

c/s 0943a03037 added some extra protection for overflowing the emulation
instruction cache, but Coverity points out that boundary condition is off by
one when memcpy()'ing out of the buffer.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c