Skip to content

Commit

Permalink
Merge pull request #143 from trungdlp-wolffun/master
Browse files Browse the repository at this point in the history
fix permission denied MacOS
  • Loading branch information
agiledragon authored Nov 7, 2023
2 parents a95d20b + 44fa863 commit 6da80f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modify_binary_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "syscall"

func modifyBinary(target uintptr, bytes []byte) {
function := entryAddress(target, len(bytes))
err := mprotectCrossPage(target, len(bytes), syscall.PROT_READ|syscall.PROT_WRITE|syscall.PROT_EXEC)
err := mprotectCrossPage(target, len(bytes), syscall.PROT_READ|syscall.PROT_WRITE)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 6da80f5

Please sign in to comment.