diff options
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/golang.org/x/net/html/token.go | 12 | ||||
| -rw-r--r-- | vendor/golang.org/x/net/http2/frame.go | 11 | ||||
| -rw-r--r-- | vendor/modules.txt | 4 | 
3 files changed, 15 insertions, 12 deletions
diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go index de67f938a..3c57880d6 100644 --- a/vendor/golang.org/x/net/html/token.go +++ b/vendor/golang.org/x/net/html/token.go @@ -910,9 +910,6 @@ func (z *Tokenizer) readTagAttrKey() {  			return  		}  		switch c { -		case ' ', '\n', '\r', '\t', '\f', '/': -			z.pendingAttr[0].end = z.raw.end - 1 -			return  		case '=':  			if z.pendingAttr[0].start+1 == z.raw.end {  				// WHATWG 13.2.5.32, if we see an equals sign before the attribute name @@ -920,7 +917,9 @@ func (z *Tokenizer) readTagAttrKey() {  				continue  			}  			fallthrough -		case '>': +		case ' ', '\n', '\r', '\t', '\f', '/', '>': +			// WHATWG 13.2.5.33 Attribute name state +			// We need to reconsume the char in the after attribute name state to support the / character  			z.raw.end--  			z.pendingAttr[0].end = z.raw.end  			return @@ -939,6 +938,11 @@ func (z *Tokenizer) readTagAttrVal() {  	if z.err != nil {  		return  	} +	if c == '/' { +		// WHATWG 13.2.5.34 After attribute name state +		// U+002F SOLIDUS (/) - Switch to the self-closing start tag state. +		return +	}  	if c != '=' {  		z.raw.end--  		return diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go index c1f6b90dc..e2b298d85 100644 --- a/vendor/golang.org/x/net/http2/frame.go +++ b/vendor/golang.org/x/net/http2/frame.go @@ -1510,13 +1510,12 @@ func (mh *MetaHeadersFrame) checkPseudos() error {  }  func (fr *Framer) maxHeaderStringLen() int { -	v := fr.maxHeaderListSize() -	if uint32(int(v)) == v { -		return int(v) +	v := int(fr.maxHeaderListSize()) +	if v < 0 { +		// If maxHeaderListSize overflows an int, use no limit (0). +		return 0  	} -	// They had a crazy big number for MaxHeaderBytes anyway, -	// so give them unlimited header lengths: -	return 0 +	return v  }  // readMetaFrame returns 0 or more CONTINUATION frames from fr and diff --git a/vendor/modules.txt b/vendor/modules.txt index e14dd6933..140b57ae7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -907,7 +907,7 @@ golang.org/x/image/webp  # golang.org/x/mod v0.14.0  ## explicit; go 1.18  golang.org/x/mod/semver -# golang.org/x/net v0.20.0 +# golang.org/x/net v0.21.0  ## explicit; go 1.18  golang.org/x/net/bpf  golang.org/x/net/context @@ -927,7 +927,7 @@ golang.org/x/net/ipv6  golang.org/x/net/proxy  golang.org/x/net/publicsuffix  golang.org/x/net/trace -# golang.org/x/oauth2 v0.16.0 +# golang.org/x/oauth2 v0.17.0  ## explicit; go 1.18  golang.org/x/oauth2  golang.org/x/oauth2/internal  | 
