k3s/vendor/github.com/opencontainers/runc/libcontainer/userns/userns_fuzzer.go

16 lines
248 B
Go
Raw Normal View History

// +build gofuzz
package userns
import (
"strings"
"github.com/opencontainers/runc/libcontainer/user"
)
func FuzzUIDMap(data []byte) int {
uidmap, _ := user.ParseIDMap(strings.NewReader(string(data)))
_ = uidMapInUserNS(uidmap)
return 1
}