Fix WORKDIR for Samba (#3094)

This commit is contained in:
Andrew Bartlett 2019-12-12 07:50:59 +13:00 committed by jonathanmetzman
parent 075af21e28
commit 131f4c5f01
3 changed files with 23 additions and 1 deletions

View File

@ -19,4 +19,5 @@ FROM gcr.io/oss-fuzz-base/base-builder
RUN git clone https://gitlab.com/samba-team/samba samba
RUN samba/lib/fuzzing/oss-fuzz/build_image.sh
WORKDIR /home/samba
WORKDIR samba
COPY build.sh $SRC/

19
projects/samba/build.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash -eu
# Copyright 2019 Google Inc.
#
# 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.
#
################################################################################
# The real script is maintained in the Samba repo
exec lib/fuzzing/oss-fuzz/build_samba.sh

View File

@ -3,6 +3,8 @@ primary_contact: "douglas.bagnall@catalyst.net.nz"
auto_ccs:
- "abartlet+google@catalyst.net.nz"
- "cryptomilk@gmail.com"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
- undefined