commit | 0cf76af32a3a2a32486689c9652f5b82620616ad | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Sat Nov 12 08:11:31 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Nov 14 17:22:23 2022 +0000 |
tree | 143b25e2ba961c806310d2688e668275fed019c7 | |
parent | 6987308262ffc9b95704349b7c16320996e812af [diff] |
slog: clip byte slice in commonHandler.clone The clone method was failing to clip the preformattedAttrs field, a []byte, so the clone could affect the original. This bug was discovered by Michael Lore. Change-Id: I80e8fd9ca7e398272cae897520a36ac3a760cef7 Reviewed-on: https://go-review.googlesource.com/c/exp/+/449696 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.