Exploit databaseDownload repository ZIP
GH-8958357e96f9d8f8c98383150c404283
notkmhn/cve-2022-21449-tls-poc
Sources for CVE-2022-21449
14 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files55
notkmhn/cve-2022-21449-tls-pocRevision fa239eebae2b
- ↑..Parent directory
- bytealg.go
- compare_386.s
- compare_amd64.s
- compare_arm.s
- compare_arm64.s
- compare_generic.go
- compare_mips64x.s
- compare_mipsx.s
- compare_native.go
- compare_ppc64x.s
- compare_riscv64.s
- compare_s390x.s
- compare_wasm.s
- count_amd64.s
- count_arm.s
- count_arm64.s
- count_generic.go
- count_native.go
- count_ppc64x.s
- count_riscv64.s
- count_s390x.s
- equal_386.s
- equal_amd64.s
- equal_arm.s
- equal_arm64.s
- equal_generic.go
- equal_mips64x.s
- equal_mipsx.s
- equal_native.go
- equal_ppc64x.s
- equal_riscv64.s
- equal_s390x.s
- equal_wasm.s
- index_amd64.go
- index_amd64.s
- index_arm64.go
- index_arm64.s
- index_generic.go
- index_native.go
- index_ppc64x.go
- index_ppc64x.s
- index_s390x.go
- index_s390x.s
- indexbyte_386.s
- indexbyte_amd64.s
- indexbyte_arm.s
- indexbyte_arm64.s
- indexbyte_generic.go
- indexbyte_mips64x.s
- indexbyte_mipsx.s
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
go/src/internal/bytealg/index_arm64.go
Go · 706 bytes// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package bytealg
// Empirical data shows that using Index can get better
// performance when len(s) <= 16.
const MaxBruteForce = 16
func init() {
// Optimize cases where the length of the substring is less than 32 bytes
MaxLen = 32
}
// Cutover reports the number of failures of IndexByte we should tolerate
// before switching over to Index.
// n is the number of bytes processed so far.
// See the bytes.Index implementation for details.
func Cutover(n int) int {
// 1 error per 16 characters, plus a few slop to start.
return 4 + n>>4
}