Exploit database

GH-8958357e96f9d8f8c98383150c404283

notkmhn/cve-2022-21449-tls-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-21449

14 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files147Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

go/src/go/types/testdata/fixedbugs/issue43110.go

Go · 785 bytes
// Copyright 2020 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 p

type P *struct{}

func _() {
	// want an error even if the switch is empty
	var a struct{ _ func() }
	switch a /* ERROR cannot switch on a */ {
	}

	switch a /* ERROR cannot switch on a */ {
	case a: // no follow-on error here
	}

	// this is ok because f can be compared to nil
	var f func()
	switch f {
	}

	switch f {
	case nil:
	}

	switch (func())(nil) {
	case nil:
	}

	switch (func())(nil) {
	case f /* ERROR invalid case f in switch on .* \(func can only be compared to nil\) */ :
	}

	switch nil /* ERROR use of untyped nil in switch expression */ {
	}

	// this is ok
	switch P(nil) {
	case P(nil):
	}
}