mirror of
https://github.com/containers/skopeo.git
synced 2025-09-27 05:03:41 +00:00
Fix a runtime segfault when being compiled with recent versions of Go. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2079759 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
18 lines
378 B
Go
18 lines
378 B
Go
//+build go1.9
|
|
|
|
package reflect2
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
//go:linkname resolveTypeOff reflect.resolveTypeOff
|
|
func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer
|
|
|
|
//go:linkname makemap reflect.makemap
|
|
func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer)
|
|
|
|
func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer {
|
|
return makemap(rtype, cap)
|
|
}
|