Howdy gophers,
in order to address a security issue.
windows: integer overflow in NewNTUnicodeString
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.
Cheers,
Go Security Team