You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow registry blobs to be as large as 500MB
Update #12493
Change-Id: I1d0e5c10772d25f8e7e17fed6e2e7dd12ca4e7cf
Reviewed-on: https://go-review.googlesource.com/14287
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
setStringValue
in https://github.com/golang/sys/blob/master/windows/registry/value.go enforces a max string size of 1<<10 which is arbitrary (on some Windows versions there is no limit enforced, see https://msdn.microsoft.com/en-us/library/windows/desktop/ms724872(v=vs.85).aspx). If the string is longer than that, the current function triggersslice bounds out of range
.Current implementation:
I propose using a byte buffer to do the
[]uint16
to[]byte
conversion, removing the string limit.The text was updated successfully, but these errors were encountered: