Out-of-bounds read In golang.org/x/sys

Description

Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows NewNTUnicodeString does not check for string length overflow. When provided with a string that overflows the maximum size of a NTUnicodeString (a 16-bit number of bytes), it returns a truncated string rather than an error.

Mitigation

Update Impact

Minimal update. May introduce new vulnerabilities or breaking changes.

Ecosystem
Package
Affected version
Patched versions