forked from TrueCloudLab/distribution
345be95498
golang.org/x/net contains a fix for CVE-2022-41717, which was addressed in stdlib in go1.19.4 and go1.18.9; > net/http: limit canonical header cache by bytes, not entries > > An attacker can cause excessive memory growth in a Go server accepting > HTTP/2 requests. > > HTTP/2 server connections contain a cache of HTTP header keys sent by > the client. While the total number of entries in this cache is capped, > an attacker sending very large keys can cause the server to allocate > approximately 64 MiB per open connection. > > This issue is also fixed in golang.org/x/net/http2 v0.4.0, > for users manually configuring HTTP/2. full diff: https://github.com/golang/net/compare/v0.2.0...v0.4.0 other dependency updates (due to (circular) dependencies): - golang.org/x/sys v0.3.0: https://github.com/golang/sys/compare/3c1f35247d10...v0.3.0 - golang.org/x/text v0.5.0: https://github.com/golang/text/compare/v0.3.7...v0.5.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
48 lines
1.2 KiB
Go
48 lines
1.2 KiB
Go
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
|
|
|
package bidi
|
|
|
|
// Class is the Unicode BiDi class. Each rune has a single class.
|
|
type Class uint
|
|
|
|
const (
|
|
L Class = iota // LeftToRight
|
|
R // RightToLeft
|
|
EN // EuropeanNumber
|
|
ES // EuropeanSeparator
|
|
ET // EuropeanTerminator
|
|
AN // ArabicNumber
|
|
CS // CommonSeparator
|
|
B // ParagraphSeparator
|
|
S // SegmentSeparator
|
|
WS // WhiteSpace
|
|
ON // OtherNeutral
|
|
BN // BoundaryNeutral
|
|
NSM // NonspacingMark
|
|
AL // ArabicLetter
|
|
Control // Control LRO - PDI
|
|
|
|
numClass
|
|
|
|
LRO // LeftToRightOverride
|
|
RLO // RightToLeftOverride
|
|
LRE // LeftToRightEmbedding
|
|
RLE // RightToLeftEmbedding
|
|
PDF // PopDirectionalFormat
|
|
LRI // LeftToRightIsolate
|
|
RLI // RightToLeftIsolate
|
|
FSI // FirstStrongIsolate
|
|
PDI // PopDirectionalIsolate
|
|
|
|
unknownClass = ^Class(0)
|
|
)
|
|
|
|
// A trie entry has the following bits:
|
|
// 7..5 XOR mask for brackets
|
|
// 4 1: Bracket open, 0: Bracket close
|
|
// 3..0 Class type
|
|
|
|
const (
|
|
openMask = 0x10
|
|
xorMaskShift = 5
|
|
)
|