go/src/encoding/xml
Roland Shoemaker 08c46ed43d encoding/xml: use iterative Skip, rather than recursive
Prevents exhausting the stack limit in _incredibly_ deeply nested
structures.

Fixes #53614
Fixes CVE-2022-28131

Change-Id: I47db4595ce10cecc29fbd06afce7b299868599e6
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1419912
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/417062
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-07-12 15:05:39 +00:00
..
atom_test.go
example_marshaling_test.go encoding/xml, encoding/json: docs and examples using custom marshalers 2018-12-12 14:18:06 +00:00
example_test.go
example_text_marshaling_test.go encoding/xml, encoding/json: docs and examples using custom marshalers 2018-12-12 14:18:06 +00:00
marshal.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
marshal_test.go encoding/xml: embedded reference to substruct causes XML marshaller to panic on encoding 2022-02-20 20:58:11 +00:00
read.go encoding/xml: use iterative Skip, rather than recursive 2022-07-12 15:05:39 +00:00
read_test.go encoding/xml: use iterative Skip, rather than recursive 2022-07-12 15:05:39 +00:00
typeinfo.go all: use reflect.{Pointer,PointerTo} 2021-10-26 14:24:17 +00:00
xml.go all: fix spelling 2022-05-17 19:51:29 +00:00
xml_test.go encoding/xml: expose decoder line and column 2022-03-27 20:26:46 +00:00