mirror of https://github.com/k3s-io/k3s
16 lines
248 B
Go
16 lines
248 B
Go
|
// +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
|
||
|
}
|