Exploit databaseDownload repository ZIP
GH-86eeaf4efa344024f10caaad61672e6a
neex/hui2ochko
Sources for CVE-2021-43848
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files28
neex/hui2ochkoRevision 8c5ba6085431
- ↑..Parent directory
- linkedlist/
- atomic_bool.go
- atomic_bool_test.go
- buffered_write_closer.go
- buffered_write_closer_test.go
- byteinterval_linkedlist.go
- byteoder_big_endian_test.go
- byteorder.go
- byteorder_big_endian.go
- gen.go
- ip.go
- ip_test.go
- log.go
- log_test.go
- minmax.go
- minmax_test.go
- new_connection_id.go
- newconnectionid_linkedlist.go
- packet_interval.go
- packetinterval_linkedlist.go
- rand.go
- rand_test.go
- rtt_stats.go
- rtt_stats_test.go
- streamframe_interval.go
- timer.go
- timer_test.go
- utils_suite_test.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
patched-quic-go/internal_/utils/rand_test.go
Go · 541 bytespackage utils
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Rand", func() {
It("generates random numbers", func() {
const (
num = 1000
max = 123456
)
var values [num]int32
var r Rand
for i := 0; i < num; i++ {
v := r.Int31n(max)
Expect(v).To(And(
BeNumerically(">=", 0),
BeNumerically("<", max),
))
values[i] = v
}
var sum uint64
for _, n := range values {
sum += uint64(n)
}
Expect(float64(sum) / num).To(BeNumerically("~", max/2, max/25))
})
})