NewNTUnicodeString did 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 returned a truncated
string rather than an error.
It now correctly returns an error when provided with a too-long string.
This is CVE-2026-39824 and Go issue https://go.dev/issue/78916.
This was a PUBLIC track issue, tracked in http://b/502133867.
NewNTUnicodeString did 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 returned a truncated
string rather than an error.
It now correctly returns an error when provided with a too-long string.
This is CVE-2026-39824 and Go issue https://go.dev/issue/78916.
This was a PUBLIC track issue, tracked in http://b/502133867.