go/src
Quentin Smith 48c6048e55 encoding/xml: check type when unmarshaling innerxml field
We only support unmarshaling into a string or a []byte, but we
previously would try (and panic while) setting a slice of a different
type. The docs say ",innerxml" is ignored if the type is not string or
[]byte, so do that for other slices as well.

Fixes #15600.

Change-Id: Ia64815945a14c3d04a0a45ccf413e38b58a69416
Reviewed-on: https://go-review.googlesource.com/32919
Run-TryBot: Quentin Smith <quentin@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2016-11-09 20:10:58 +00:00
..
archive archive/tar: disable prefix field in Writer 2016-11-02 20:18:38 +00:00
bufio bufio: remove unnecessary "continue" 2016-10-24 14:49:44 +00:00
builtin
bytes all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
cmd cmd/compile/internal/syntax: fix error handling for Read/Parse calls 2016-11-09 17:48:40 +00:00
compress all: sprinkle t.Parallel on some slow tests 2016-11-04 16:56:57 +00:00
container
context context: adjust tests to avoid importing "testing" in package context 2016-11-03 21:12:21 +00:00
crypto crypto/elliptic: add s390x assembly implementation of NIST P-256 Curve 2016-11-08 17:50:17 +00:00
database/sql database/sql: correctly spell constants 2016-10-31 17:17:46 +00:00
debug all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
encoding encoding/xml: check type when unmarshaling innerxml field 2016-11-09 20:10:58 +00:00
errors
expvar expvar: add Value methods 2016-10-13 21:39:03 +00:00
flag flag: arrange for FlagSet.Usage to be non-nil by default 2016-10-26 16:13:40 +00:00
fmt fmt: document that unexported struct fields don't get the String/Error treatment 2016-10-26 13:56:45 +00:00
go runtime/pprof/internal: add package protopprof 2016-11-08 19:39:16 +00:00
hash
html html/template, text/template: drop defined template list from errors 2016-10-28 17:10:55 +00:00
image image/png: implement grayscale transparency. 2016-10-28 02:10:13 +00:00
index/suffixarray
internal internal/syscall/windows: add GetModuleFileName 2016-11-07 22:18:24 +00:00
io io: clarify Pipe docs 2016-10-18 12:53:56 +00:00
log all: sprinkle t.Parallel on some slow tests 2016-11-04 16:56:57 +00:00
math math, math/big: add support for GOARCH=mips{,le} 2016-11-03 22:55:06 +00:00
mime mime/multipart: test for overreading on a stream 2016-11-07 19:32:11 +00:00
net net/http: deflake TestClientRedirects 2016-11-08 18:07:17 +00:00
os os: on Windows, don't fix long paths that aren't long 2016-11-08 23:06:17 +00:00
path path: document that filepath is recommended to manipulate filename paths 2016-11-08 18:36:52 +00:00
plugin plugin: fix doc example fmt usage 2016-11-05 00:23:55 +00:00
reflect reflect: add support for GOARCH=mips{,le} 2016-11-03 23:01:05 +00:00
regexp regexp: avoid alloc in QuoteMeta when not quoting 2016-10-19 07:09:08 +00:00
runtime runtime/pprof/internal/protopprof: skip TestTranslateCPUProfileWithSamples if < 2 mappings 2016-11-09 18:22:00 +00:00
sort
strconv strconv: strip \r in raw strings passed to Unquote 2016-10-17 18:34:02 +00:00
strings bytes, strings: update s390x code to match amd64 changes 2016-11-02 15:56:24 +00:00
sync sync/atomic: add support for GOARCH=mips{,le} 2016-11-03 22:48:09 +00:00
syscall syscall: fix name of prlimit parameters 2016-11-08 16:09:48 +00:00
testing testing: add T.Context method 2016-11-03 21:14:30 +00:00
text html/template, text/template: drop defined template list from errors 2016-10-28 17:10:55 +00:00
time time: document that only Jan and January, Mon and Monday are recognized 2016-11-03 16:04:14 +00:00
unicode unicode/utf8: optimize ValidRune 2016-10-26 23:02:52 +00:00
unsafe unsafe: remove incorrect type conversion in docs 2016-11-07 18:54:14 +00:00
vendor/golang_org/x vendor/golang_org/text/unicode/norm: re-vendor 2016-10-31 19:27:05 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc