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 files33
notkmhn/cve-2022-21449-tls-pocRevision fa239eebae2b
- ↑..Parent directory
- asan1_fail.go
- asan2_fail.go
- asan3_fail.go
- asan4_fail.go
- asan5_fail.go
- asan_unsafe_fail1.go
- asan_unsafe_fail2.go
- asan_unsafe_fail3.go
- asan_useAfterReturn.go
- msan.go
- msan2.go
- msan2_cmsan.go
- msan3.go
- msan4.go
- msan5.go
- msan6.go
- msan7.go
- msan8.go
- msan_fail.go
- msan_shared.go
- tsan.go
- tsan10.go
- tsan11.go
- tsan12.go
- tsan2.go
- tsan3.go
- tsan4.go
- tsan5.go
- tsan6.go
- tsan7.go
- tsan8.go
- tsan9.go
- tsan_shared.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
go/misc/cgo/testsanitizers/testdata/msan.go
Go · 540 bytes// Copyright 2015 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 main
/*
#include <stdint.h>
void f(int32_t *p, int n) {
int i;
for (i = 0; i < n; i++) {
p[i] = (int32_t)i;
}
}
*/
import "C"
import (
"fmt"
"os"
"unsafe"
)
func main() {
a := make([]int32, 10)
C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a)))
for i, v := range a {
if i != int(v) {
fmt.Println("bad %d: %v\n", i, a)
os.Exit(1)
}
}
}