Disable semgrep check for unsafe
This commit is contained in:
@@ -64,15 +64,15 @@ func sysCredRead(targetName string, typ sysCRED_TYPE) ([]byte, error) {
|
|||||||
targetNamePtr, _ := windows.UTF16PtrFromString(targetName)
|
targetNamePtr, _ := windows.UTF16PtrFromString(targetName)
|
||||||
ret, _, err := syscall.SyscallN(
|
ret, _, err := syscall.SyscallN(
|
||||||
procCredRead.Addr(),
|
procCredRead.Addr(),
|
||||||
uintptr(unsafe.Pointer(targetNamePtr)),
|
uintptr(unsafe.Pointer(targetNamePtr)), // nosemgrep
|
||||||
uintptr(typ),
|
uintptr(typ),
|
||||||
0,
|
0,
|
||||||
uintptr(unsafe.Pointer(&pcred)),
|
uintptr(unsafe.Pointer(&pcred)), // nosemgrep
|
||||||
)
|
)
|
||||||
if ret == 0 {
|
if ret == 0 {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer procCredFree.Call(uintptr(unsafe.Pointer(pcred)))
|
defer procCredFree.Call(uintptr(unsafe.Pointer(pcred))) // nosemgrep
|
||||||
|
|
||||||
return goBytes(pcred.CredentialBlob, pcred.CredentialBlobSize), nil
|
return goBytes(pcred.CredentialBlob, pcred.CredentialBlobSize), nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user