Skip to content

Commit

Permalink
Fixed some issue on tracking when protecting memory with PROT=0
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jul 13, 2024
1 parent 666b5a6 commit dcc0355
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/custommem.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ void setProtection_mmap(uintptr_t addr, size_t size, uint32_t prot)
else {
mutex_lock(&mutex_prot);
rb_set(mapallmem, addr, addr+size, 1);
rb_unset(memprot, addr, addr+size);
mutex_unlock(&mutex_prot);
}
}
Expand All @@ -970,6 +971,7 @@ void setProtection_elf(uintptr_t addr, size_t size, uint32_t prot)
else {
mutex_lock(&mutex_prot);
rb_set(mapallmem, addr, addr+size, 1);
rb_unset(memprot, addr, addr+size);
mutex_unlock(&mutex_prot);
}
}
Expand Down

0 comments on commit dcc0355

Please sign in to comment.