about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 45c7a01f..f77b005c 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -590,6 +590,7 @@ static uintptr_t getDBSize(uintptr_t addr, size_t maxsize, dynablock_t** db)
     uintptr_t* block = box64_jmptbl3[idx3][idx2][idx1];
     if(block == box64_jmptbldefault0)
         return (((addr>>JMPTABL_START1)+1)<<JMPTABL_START1);
+    maxsize+=idx0;  // need to adjust maxsize to "end in current block"
     if (maxsize>JMPTABLE_MASK0)
         maxsize = JMPTABLE_MASK0;
     while(block[idx0]==(uintptr_t)native_next) {