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 files116
notkmhn/cve-2022-21449-tls-pocRevision fa239eebae2b
- ↑..Parent directory
- big/
- bits/
- cmplx/
- rand/
- abs.go
- acos_s390x.s
- acosh.go
- acosh_s390x.s
- arith_s390x.go
- asin.go
- asin_s390x.s
- asinh.go
- asinh_s390x.s
- atan.go
- atan2.go
- atan2_s390x.s
- atan_s390x.s
- atanh.go
- atanh_s390x.s
- bits.go
- cbrt.go
- cbrt_s390x.s
- const.go
- copysign.go
- cosh_s390x.s
- dim.go
- dim_amd64.s
- dim_arm64.s
- dim_asm.go
- dim_noasm.go
- dim_riscv64.s
- dim_s390x.s
- erf.go
- erf_s390x.s
- erfc_s390x.s
- erfinv.go
- exp.go
- exp2_asm.go
- exp2_noasm.go
- exp_amd64.go
- exp_amd64.s
- exp_arm64.s
- exp_asm.go
- exp_noasm.go
- exp_s390x.s
- expm1.go
- expm1_s390x.s
- floor.go
- floor_386.s
- floor_amd64.s
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
go/src/math/frexp.go
Go · 929 bytes// Copyright 2009 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 math
// Frexp breaks f into a normalized fraction
// and an integral power of two.
// It returns frac and exp satisfying f == frac × 2**exp,
// with the absolute value of frac in the interval [½, 1).
//
// Special cases are:
//
// Frexp(±0) = ±0, 0
// Frexp(±Inf) = ±Inf, 0
// Frexp(NaN) = NaN, 0
func Frexp(f float64) (frac float64, exp int) {
if haveArchFrexp {
return archFrexp(f)
}
return frexp(f)
}
func frexp(f float64) (frac float64, exp int) {
// special cases
switch {
case f == 0:
return f, 0 // correctly return -0
case IsInf(f, 0) || IsNaN(f):
return f, 0
}
f, exp = normalize(f)
x := Float64bits(f)
exp += int((x>>shift)&mask) - bias + 1
x &^= mask << shift
x |= (-1 + bias) << shift
frac = Float64frombits(x)
return
}