1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

thermosphere: fix off by 1 in wp mgr

This commit is contained in:
TuxSH 2020-03-01 15:34:51 +00:00
parent 7ecb3a4aaf
commit 0126a6417f

View file

@ -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);