[chore]: Bump golang.org/x/crypto from 0.18.0 to 0.19.0 (#2632)

This commit is contained in:
dependabot[bot]
2024-02-12 09:56:45 +00:00
committed by GitHub
parent 9125a51584
commit d0e674b3da
38 changed files with 226 additions and 81 deletions

View File

@@ -125,8 +125,7 @@ func UTF16PtrToString(p *uint16) string {
for ptr := unsafe.Pointer(p); *(*uint16)(ptr) != 0; n++ {
ptr = unsafe.Pointer(uintptr(ptr) + unsafe.Sizeof(*p))
}
return string(utf16.Decode(unsafe.Slice(p, n)))
return UTF16ToString(unsafe.Slice(p, n))
}
func Getpagesize() int { return 4096 }