Disable semgrep check for unsafe
This commit is contained in:
@@ -84,12 +84,12 @@ func goBytes(src uintptr, len uint32) []byte {
|
|||||||
return []byte{}
|
return []byte{}
|
||||||
}
|
}
|
||||||
rv := make([]byte, len)
|
rv := make([]byte, len)
|
||||||
copy(rv, *(*[]byte)(unsafe.Pointer(&struct {
|
copy(rv, *(*[]byte)(unsafe.Pointer(&struct { // nosemgrep
|
||||||
Data unsafe.Pointer
|
Data unsafe.Pointer
|
||||||
Len int
|
Len int
|
||||||
Cap int
|
Cap int
|
||||||
}{
|
}{
|
||||||
Data: unsafe.Pointer(src),
|
Data: unsafe.Pointer(src), // nosemgrep
|
||||||
Len: int(len),
|
Len: int(len),
|
||||||
Cap: int(len),
|
Cap: int(len),
|
||||||
})))
|
})))
|
||||||
|
Reference in New Issue
Block a user