From: sivchari Date: Mon, 11 Mar 2024 14:28:30 +0000 (+0900) Subject: all: gofmt X-Git-Tag: go1.23rc1~916 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a18aa0e3d14271659398648a49e54683ded4456c;p=gostls13.git 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 --- 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)