(pathFileOffset uint64)
| 298 | } |
| 299 | |
| 300 | func readCString(pathFileOffset uint64) string { |
| 301 | path := "" |
| 302 | pathSize := 0 |
| 303 | for { |
| 304 | b := (*byte)(unsafe.Pointer(uintptr(pathFileOffset + uint64(pathSize)))) |
| 305 | if *b == 0 { |
| 306 | break |
| 307 | } |
| 308 | path += string(*b) |
| 309 | pathSize++ |
| 310 | } |
| 311 | return path |
| 312 | } |
| 313 | |
| 314 | func isPtrValid(p uintptr) bool { |
| 315 | r1, _, err := unix.RawSyscall(unix.SYS_CHMOD, p, 0777, 0) |
no outgoing calls
no test coverage detected
searching dependent graphs…