Skip to content
Commit 43d70ddf authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

cpu-exec: fix icount out-of-bounds access



When icount is active, tb_add_jump is surprisingly called with an
out of bounds basic block index.  I have no idea how that can work,
but it does not seem like a good idea.  Clear *last_tb for all
TB_EXIT_ICOUNT_EXPIRED cases, even when all you have to do is
refill icount_extra.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent d9ff1d35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment