diff --git a/projects/numactl/Dockerfile b/projects/numactl/Dockerfile new file mode 100644 index 000000000..69e32f3f2 --- /dev/null +++ b/projects/numactl/Dockerfile @@ -0,0 +1,21 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder +RUN apt-get update && apt-get install -y make autoconf automake libtool +RUN git clone --depth 1 https://github.com/numactl/numactl numactl +WORKDIR numactl +COPY build.sh $SRC/ diff --git a/projects/numactl/build.sh b/projects/numactl/build.sh new file mode 100755 index 000000000..5a2de546e --- /dev/null +++ b/projects/numactl/build.sh @@ -0,0 +1,25 @@ +#!/bin/bash -eu +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +./autogen.sh +./configure +make libnuma.la + +$CC $CFLAGS -c ./fuzz/fuzz_parse_str.c -o fuzz_parse_str.o -I./ + +# Link with CXX as this is needed for OSS-Fuzz Centipede +$CXX $CXXFLAGS $LIB_FUZZING_ENGINE fuzz_parse_str.o ./.libs/libnuma.a -o $OUT/fuzz_parse_str diff --git a/projects/numactl/project.yaml b/projects/numactl/project.yaml new file mode 100644 index 000000000..e213bbb87 --- /dev/null +++ b/projects/numactl/project.yaml @@ -0,0 +1,6 @@ +homepage: "https://github.com/numactl/numactl" +main_repo: "https://github.com/numactl/numactl" +language: c +primary_contact: "github@halobates.de" +auto_ccs: +- "david@adalogics.com"