Skip to content

Commit 6da80f5

Browse files
authored
Merge pull request #143 from trungdlp-wolffun/master
fix permission denied MacOS
2 parents a95d20b + 44fa863 commit 6da80f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modify_binary_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "syscall"
44

55
func modifyBinary(target uintptr, bytes []byte) {
66
function := entryAddress(target, len(bytes))
7-
err := mprotectCrossPage(target, len(bytes), syscall.PROT_READ|syscall.PROT_WRITE|syscall.PROT_EXEC)
7+
err := mprotectCrossPage(target, len(bytes), syscall.PROT_READ|syscall.PROT_WRITE)
88
if err != nil {
99
panic(err)
1010
}

0 commit comments

Comments
 (0)