github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/tests/fuzzing/oss_fuzz_build.sh (about)

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