Disable semgrep check for unsafe

This commit is contained in:
2025-09-05 11:57:58 +02:00
parent dc7b4d17b3
commit ccc16c7d79

View File

@@ -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),
}))) })))