Files
runc/tests/fuzzing/oss_fuzz_build.sh
T
Daniel Dao c8e0486f0f Fix oss-fuzz build
THis fixes incorrect module path and also add proper tags for
FuzzUIDMap.

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32109#c1

Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2021-03-23 11:22:09 +00:00

14 lines
766 B
Bash
Executable File

#!/usr/bin/env bash
# This file is only meant to be run by OSS-fuzz and will not work
# if run outside of it.
# The api, compile_go_fuzzer() is provided by the OSS-fuzz
# environment and is a high level helper function for a series
# of compilation and linking steps to build the fuzzers in the
# OSS-fuzz environment.
# More info about compile_go_fuzzer() can be found here:
# https://google.github.io/oss-fuzz/getting-started/new-project-guide/go-lang/#buildsh
compile_go_fuzzer github.com/opencontainers/runc/libcontainer/system FuzzUIDMap id_map_fuzzer linux,gofuzz
compile_go_fuzzer github.com/opencontainers/runc/libcontainer/user FuzzUser user_fuzzer
compile_go_fuzzer github.com/opencontainers/runc/libcontainer/configs FuzzUnmarshalJSON configs_fuzzer