diff options
author | Roland Shoemaker <bracewell@google.com> | 2022-06-07 13:00:43 -0700 |
---|---|---|
committer | Michael Knyszek <mknyszek@google.com> | 2022-07-12 15:20:44 +0000 |
commit | cd54600b866db0ad068ab8df06c7f5f6cb55c9b3 (patch) | |
tree | ea9231caee749516c4187db0210cac03346a9ce6 /VERSION | |
parent | 76f8b7304d1f7c25834e2a0cc9e88c55276c47df (diff) | |
download | go-cd54600b866db0ad068ab8df06c7f5f6cb55c9b3.tar.gz go-cd54600b866db0ad068ab8df06c7f5f6cb55c9b3.zip |
[release-branch.go1.17] encoding/gob: add a depth limit for ignored fields
Enforce a nesting limit of 10,000 for ignored fields during decoding
of messages. This prevents the possibility of triggering stack
exhaustion.
Fixes #53709
Updates #53615
Fixes CVE-2022-30635
Change-Id: I05103d06dd5ca3945fcba3c1f5d3b5a645e8fb0f
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1484771
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
(cherry picked from commit 55e8f938d22bfec29cc9dc9671044c5a41d1ea9c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/417074
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions