diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:05:10 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:05:10 +0000 |
commit | 381b24fcc18eba283cbf90222484f6f5681a8242 (patch) | |
tree | aab00ff7a7202a49d2afaa9084f260c2e519653b /projects/libpg_query | |
parent | fb5f9297f193f715161e5938b881435d7708021f (diff) | |
parent | 964a594e4219fae93e07d1546c905a01e3bf8e3e (diff) | |
download | oss-fuzz-381b24fcc18eba283cbf90222484f6f5681a8242.tar.gz |
Snap for 8570526 from 964a594e4219fae93e07d1546c905a01e3bf8e3e to mainline-ipsec-releaseaml_ips_331910010aml_ips_331312000aml_ips_331310000aml_ips_331111030aml_ips_331014020android13-mainline-ipsec-release
Change-Id: Ic2fdd323947912f1a517b3ef88fe3a5037d24b94
Diffstat (limited to 'projects/libpg_query')
-rw-r--r-- | projects/libpg_query/Dockerfile | 20 | ||||
-rwxr-xr-x | projects/libpg_query/build.sh | 19 | ||||
-rw-r--r-- | projects/libpg_query/project.yaml | 7 |
3 files changed, 46 insertions, 0 deletions
diff --git a/projects/libpg_query/Dockerfile b/projects/libpg_query/Dockerfile new file mode 100644 index 000000000..90f173b33 --- /dev/null +++ b/projects/libpg_query/Dockerfile @@ -0,0 +1,20 @@ +# Copyright 2021 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 git clone --depth 1 https://github.com/pganalyze/libpg_query libpg_query +WORKDIR libpg_query +COPY build.sh $SRC/ diff --git a/projects/libpg_query/build.sh b/projects/libpg_query/build.sh new file mode 100755 index 000000000..0b5aa9f01 --- /dev/null +++ b/projects/libpg_query/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash -eu +# Copyright 2021 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. +# +################################################################################ + +make build +$CC $CFLAGS $LIB_FUZZING_ENGINE ./test/fuzz/fuzz_parser.c ./libpg_query.a -I./ -o $OUT/fuzz_parser diff --git a/projects/libpg_query/project.yaml b/projects/libpg_query/project.yaml new file mode 100644 index 000000000..11d7e74c2 --- /dev/null +++ b/projects/libpg_query/project.yaml @@ -0,0 +1,7 @@ +homepage: "https://pganalyze.com/" +language: c +primary_contact: "team@pganalyze.com" +main_repo: "https://github.com/pganalyze/pg_query" +auto_ccs: + - "lukas@pganalyze.com" + - "david@adalogics.com" |