aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2025-10-27 08:15:48 -0700
committerGopher Robot <gobot@golang.org>2025-11-04 09:21:51 -0800
commit9f6590f333ee3ecd318e95ef54073fe76d1225de (patch)
tree014e102c0a7746d87b648bca41becdc1848f9744 /test/codegen
parent34fec512ce34fb5926aa38e0ccd0083feed94733 (diff)
downloadgo-9f6590f333ee3ecd318e95ef54073fe76d1225de.tar.xz
encoding/pem: don't reslice in failure modes
We re-slice the data being processed at the stat of each loop. If the var that we use to calculate where to re-slice is < 0 or > the length of the remaining data, return instead of attempting to re-slice. Change-Id: I1d6c2b6c596feedeea8feeaace370ea73ba02c4c Reviewed-on: https://go-review.googlesource.com/c/go/+/715260 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions