mirror of https://github.com/google/oss-fuzz.git
numactl: initial integration (#9877)
Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
parent
264b67c943
commit
a6263b73be
|
@ -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/
|
|
@ -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
|
|
@ -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"
|
Loading…
Reference in New Issue