Skip to content

Commit 7e05066

Browse files
committed
fix svcQueryMemory for heap region
1 parent 86e6165 commit 7e05066

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Svc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ tuple<guint, guint> Svc::QueryMemory(gptr meminfo, gptr pageinfo, gptr addr) {
178178
minfo.size = end - begin + 1;
179179
minfo.memory_type = perm == -1 ? 0 : 3; // FREE or CODE
180180
minfo.memory_attribute = 0;
181-
if(addr >= 0xaa0000000 && addr <= 0xaa0000000 + ctu->heapsize) {
181+
if(addr >= 0xaa0000000 && addr < 0xaa0000000 + ctu->heapsize) {
182182
minfo.memory_type = 5; // HEAP
183183
}
184184
minfo.permission = 0;

0 commit comments

Comments
 (0)