]> Cypherpunks repositories - gostls13.git/commit
syscall: reduce memory allocated by UTF16FromString
authorFrediano Ziglio <freddy77@gmail.com>
Thu, 4 May 2023 10:25:29 +0000 (11:25 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 4 May 2023 17:28:54 +0000 (17:28 +0000)
commit60c724c55a5cc9925e63c5b8383f6d24ae06a658
treeaf6fdea3107861eaeb559aeac84bf92ce64ac6e1
parent8f7830978a49a995de6ab69ff12a0ecc4aa8427d
syscall: reduce memory allocated by UTF16FromString

The function allocated a buffer larger than needed.
Fixes #59967.

Signed-off-by: Frediano Ziglio <frediano.ziglio@nextdlp.com>
Change-Id: I5f30a135acf5f27d6c2ef4bc4abef5144da4dc94
Reviewed-on: https://go-review.googlesource.com/c/go/+/492575
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/syscall/syscall_windows.go
src/syscall/syscall_windows_test.go