From 1e8e08ed4579c5e814df1e86c34a1d0a32990840 Mon Sep 17 00:00:00 2001 From: NTUT_Tommy Date: Tue, 8 Oct 2024 16:17:16 +0800 Subject: [PATCH 1/6] push vorbis code --- projects/vorbis_test_project/Dockerfile | 27 +++++++++++++++++++++++ projects/vorbis_test_project/build.sh | 18 +++++++++++++++ projects/vorbis_test_project/project.yaml | 11 +++++++++ 3 files changed, 56 insertions(+) create mode 100644 projects/vorbis_test_project/Dockerfile create mode 100755 projects/vorbis_test_project/build.sh create mode 100644 projects/vorbis_test_project/project.yaml diff --git a/projects/vorbis_test_project/Dockerfile b/projects/vorbis_test_project/Dockerfile new file mode 100644 index 000000000000..0910c9950137 --- /dev/null +++ b/projects/vorbis_test_project/Dockerfile @@ -0,0 +1,27 @@ +# Copyright 2018 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. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder +RUN apt-get update && apt-get install -y make autoconf automake ffmpeg libtool pkg-config python3 wget +RUN python3 -m pip install --upgrade pip && python3 -m pip install corpus-replicator +RUN git clone --depth 1 https://gitlab.xiph.org/xiph/ogg.git +RUN git clone --depth 1 https://gitlab.xiph.org/xiph/vorbis.git +RUN corpus-replicator -o decode_corpus audio_vorbis_ogg_libvorbis.yml audio +# TODO: remove `people.xiph.org` lines once upstream build script is updated +RUN mkdir people.xiph.org/ +RUN touch people.xiph.org/dummy.ogg +WORKDIR vorbis +COPY build.sh $SRC/ diff --git a/projects/vorbis_test_project/build.sh b/projects/vorbis_test_project/build.sh new file mode 100755 index 000000000000..0889515798e0 --- /dev/null +++ b/projects/vorbis_test_project/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash -eu +# Copyright 2018 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. +# +################################################################################ + +. contrib/oss-fuzz/build.sh diff --git a/projects/vorbis_test_project/project.yaml b/projects/vorbis_test_project/project.yaml new file mode 100644 index 000000000000..54ee7558fd2f --- /dev/null +++ b/projects/vorbis_test_project/project.yaml @@ -0,0 +1,11 @@ +homepage: "https://xiph.org/vorbis/" +language: c++ +primary_contact: "t108590031@ntut.org.tw" +fuzzing_engines: + - libfuzzer + - afl + - honggfuzz +sanitizers: + - address + - memory +main_repo: 'https://gitlab.xiph.org/xiph/vorbis.git' From 19f0de48e0c54ea6bde34dddeed3d9a8aca9f4fb Mon Sep 17 00:00:00 2001 From: NTUT_Tommy Date: Tue, 8 Oct 2024 16:46:33 +0800 Subject: [PATCH 2/6] WIP on vorbis --- projects/vorbis_test_project/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vorbis_test_project/build.sh b/projects/vorbis_test_project/build.sh index 0889515798e0..19eb6bdd711a 100755 --- a/projects/vorbis_test_project/build.sh +++ b/projects/vorbis_test_project/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# Copyright 2018 Google Inc. +# Copyright 2024 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 2583cd465cb9ee22b4269cc7e13f875e26741eb5 Mon Sep 17 00:00:00 2001 From: NTUT_Tommy Date: Tue, 8 Oct 2024 16:48:08 +0800 Subject: [PATCH 3/6] push licence --- projects/vorbis_test_project/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vorbis_test_project/build.sh b/projects/vorbis_test_project/build.sh index 19eb6bdd711a..19d726869bf1 100755 --- a/projects/vorbis_test_project/build.sh +++ b/projects/vorbis_test_project/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# Copyright 2024 Google Inc. +# Copyright 2024 WYQ. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 1fe1ab09d011da8dbfc5d879620b0c657f3ac994 Mon Sep 17 00:00:00 2001 From: NTUT_Tommy Date: Tue, 8 Oct 2024 16:50:30 +0800 Subject: [PATCH 4/6] psuh --- projects/vorbis_test_project/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vorbis_test_project/build.sh b/projects/vorbis_test_project/build.sh index 19d726869bf1..c9c31ebc9c6b 100755 --- a/projects/vorbis_test_project/build.sh +++ b/projects/vorbis_test_project/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# Copyright 2024 WYQ. +# Copyright 2024 Wang Yu Quan. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 0be7cfb353c3b945ac2206f2c73db72618b59a47 Mon Sep 17 00:00:00 2001 From: NTUT_Tommy Date: Tue, 8 Oct 2024 16:52:22 +0800 Subject: [PATCH 5/6] change header error --- projects/vorbis_test_project/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vorbis_test_project/build.sh b/projects/vorbis_test_project/build.sh index c9c31ebc9c6b..19eb6bdd711a 100755 --- a/projects/vorbis_test_project/build.sh +++ b/projects/vorbis_test_project/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# Copyright 2024 Wang Yu Quan. +# Copyright 2024 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 82dde53f776a40cce7f2131c73d00615c5564ed8 Mon Sep 17 00:00:00 2001 From: NTUT_Tommy Date: Tue, 8 Oct 2024 16:54:06 +0800 Subject: [PATCH 6/6] change org to school --- projects/vorbis_test_project/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vorbis_test_project/build.sh b/projects/vorbis_test_project/build.sh index 19eb6bdd711a..0f4e121bd2d0 100755 --- a/projects/vorbis_test_project/build.sh +++ b/projects/vorbis_test_project/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# Copyright 2024 Google Inc. +# Copyright 2024 NTUT. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.