MCPcopy Create free account
hub / github.com/Binject/universal / isPtrValid

Function isPtrValid

loader_darwin.go:314–320  ·  view source on GitHub ↗
(p uintptr)

Source from the content-addressed store, hash-verified

312}
313
314func isPtrValid(p uintptr) bool {
315 r1, _, err := unix.RawSyscall(unix.SYS_CHMOD, p, 0777, 0)
316 if r1 != 0 && err != 2 {
317 return false
318 }
319 return err == 2
320}
321
322func findMacho(addr uintptr, increment uint32) (uintptr, error) {
323 var (

Callers 2

findMachoFunction · 0.85
findMachoPtrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…