From 0126a6417fe4845cadcf50034d5d7b014d200b5b Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Sun, 1 Mar 2020 15:34:51 +0000 Subject: [PATCH] thermosphere: fix off by 1 in wp mgr --- thermosphere/src/hvisor_watchpoint_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermosphere/src/hvisor_watchpoint_manager.cpp b/thermosphere/src/hvisor_watchpoint_manager.cpp index 60be23745..83e3c4d89 100644 --- a/thermosphere/src/hvisor_watchpoint_manager.cpp +++ b/thermosphere/src/hvisor_watchpoint_manager.cpp @@ -105,7 +105,7 @@ namespace ams::hvisor { } else { size_t off = addr & 7ull; wp.vr = addr & ~7ul; - wp.cr.bas = MASK2(off + size, off); + wp.cr.bas = MASK2(off + size - 1, off); } return AddImpl(addr, size, wp);