Jason A. Donenfeld
c46e0d965b
windows/registry: do not generate unaligned loads
...
Byte slices aren't necessarily aligned, which means casting them to
integer types and dereferencing may result in an unaligned load. This
is mostly fine on Intel but isn't necessarily fine on other platforms.
Any good compiler will generate optimal code for the platform using the
pattern of this commit.
Change-Id: I6dd8debad1cb850b8562ee96ae0f366d1f822a6f
Reviewed-on: https://go-review.googlesource.com/c/sys/+/176857
Run-TryBot: Jason Donenfeld <Jason@zx2c4.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2019-05-22 03:42:48 +00:00
Alex Brainman
16e60ce682
windows/registry: do not panic when data is large
...
Allow registry blobs to be as large as 500MB
Copy of CL 14287.
Fixes golang/go#12493
Change-Id: I37b82fcf90ff2acef83c66016375fcae15e6eefc
Reviewed-on: https://go-review.googlesource.com/14288
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2015-09-09 02:29:49 +00:00
Daniel Johansson
98fc11432b
windows/registry: copy latest changes from internal/syscall/registry
...
This CL includes changes from:
https://golang.org/cl/13929
https://golang.org/cl/13854
Part of fixing https://golang.org/issue/12015
Change-Id: I62e00e165d97d2349c89a783aed7fcbe9e0abd34
Reviewed-on: https://go-review.googlesource.com/14016
Run-TryBot: Alex Brainman <alex.brainman@gmail.com >
Reviewed-by: Alex Brainman <alex.brainman@gmail.com >
2015-08-30 10:08:33 +00:00
Alex Brainman
0879c8a4d6
windows/registry: remove debugging dreg
...
copy of CL 13828 change
Change-Id: I48ea36171281eed8e59b92e130c762142fb94604
Reviewed-on: https://go-review.googlesource.com/13829
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2015-08-24 23:40:35 +00:00
Alex Brainman
87f732a730
windows/registry: copy latest changes from internal/syscall/registry
...
This CL includes changes from:
http://golang.org/cl/9805
http://golang.org/cl/9806
http://golang.org/cl/9901
Change-Id: I1f41a8215f9f760c0d3b84596e37bf48bf4c9bc2
Reviewed-on: https://go-review.googlesource.com/10132
Reviewed-by: Rob Pike <r@golang.org >
2015-05-15 05:08:24 +00:00
Alex Brainman
bbc47fbbc8
windows/registry: mark string end with 0 before calling Windows ExpandEnvironmentStrings
...
Change-Id: I02bfcdeac44167d1dbeb15bcd5c82111fba3f527
Reviewed-on: https://go-review.googlesource.com/9234
Reviewed-by: Rob Pike <r@golang.org >
2015-04-23 02:52:27 +00:00
Alex Brainman
e961698092
windows/registry: add new package to manipulate Windows registry
...
Change-Id: Ia7c3d6250c041b95aa43ca5ca2a92251c480ef77
Reviewed-on: https://go-review.googlesource.com/8843
Reviewed-by: Rob Pike <r@golang.org >
2015-04-15 07:18:44 +00:00