From a18aa0e3d14271659398648a49e54683ded4456c Mon Sep 17 00:00:00 2001 From: sivchari Date: Mon, 11 Mar 2024 23:28:30 +0900 Subject: [PATCH] all: gofmt These files are not formatted by gofmt. Thus, run gofmt to format them. Change-Id: Iea9650e64b1f47cf82739f3a8a34f47740a96455 Reviewed-on: https://go-review.googlesource.com/c/go/+/570398 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Auto-Submit: Ian Lance Taylor --- src/html/template/transition.go | 2 +- src/net/netip/slow_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/template/transition.go b/src/html/template/transition.go index b897bea542..c430389a34 100644 --- a/src/html/template/transition.go +++ b/src/html/template/transition.go @@ -414,7 +414,7 @@ func tJSDelimited(c context, s []byte) (context, int) { // If " 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1 : i+7]), []byte(" 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1:i+7]), []byte(" 4) { + if len(s) > 4 { return 0, 0, fmt.Errorf("parseWord(%q): invalid word", s) } ret, err := strconv.ParseUint(s, 16, 16) -- 2.48.1