Skip to content

mongo-go-driver: initial integration #9528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
50b219f
[wip] mongo-go-driver: initial integration
manunio Jan 30, 2023
e1d021a
fix build
manunio Jan 31, 2023
b023fe5
Merge branch 'master' into mongo-go-driver
manunio Jan 31, 2023
bc733ef
Added contacts
manunio Feb 8, 2023
c49e758
Merge branch 'master' into mongo-go-driver
manunio Feb 8, 2023
f44a65f
Merge branch 'master' into mongo-go-driver
manunio Feb 14, 2023
80eba46
Merge branch 'master' into mongo-go-driver
manunio Feb 15, 2023
c7708fd
Merge branch 'master' into mongo-go-driver
manunio Feb 21, 2023
275ca56
mongo-go-driver: update repo
manunio Feb 23, 2023
d834d95
Merge branch 'master' into mongo-go-driver
manunio Feb 23, 2023
cb94616
Merge branch 'master' into mongo-go-driver
manunio Feb 27, 2023
d647731
Merge branch 'master' into mongo-go-driver
manunio Mar 1, 2023
a8896d4
Merge branch 'master' into mongo-go-driver
manunio Mar 1, 2023
0aecf86
Merge branch 'master' into mongo-go-driver
manunio Mar 7, 2023
61b8f7b
Merge branch 'master' into mongo-go-driver
manunio Mar 15, 2023
0df4c95
Merge branch 'master' into mongo-go-driver
DonggeLiu Mar 16, 2023
98d7d1c
Merge branch 'master' into mongo-go-driver
manunio Mar 18, 2023
619e54d
Merge branch 'master' into mongo-go-driver
DonggeLiu Mar 18, 2023
6618f20
Merge branch 'master' into mongo-go-driver
manunio Mar 21, 2023
c6e8898
Merge branch 'master' into mongo-go-driver
manunio Mar 28, 2023
ca28b28
Merge branch 'master' into mongo-go-driver
DonggeLiu Mar 28, 2023
c40fe8e
Merge branch 'master' into mongo-go-driver
DonggeLiu Mar 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions projects/mongo-go-driver/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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-go

RUN apt-get update && apt-get install -y make autoconf automake libtool

RUN git clone --depth 1 https://github.com/mongodb/mongo-go-driver mongo-go-driver

WORKDIR mongo-go-driver

COPY build.sh $SRC/
26 changes: 26 additions & 0 deletions projects/mongo-go-driver/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/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.
#
################################################################################

go get github.com/AdamKorcz/go-118-fuzz-build/testing
go run cmd/build-oss-fuzz-corpus/main.go $OUT/fuzz_decode_seed_corpus.zip

mv bson/fuzz_test.go bson/fuzz.go
mv bson/bson_corpus_spec_test.go bson/bson_corpus_spec.go

sed -i '/seedBSONCorpus/d' bson/fuzz.go

compile_native_go_fuzzer go.mongodb.org/mongo-driver/bson FuzzDecode fuzz_decode
15 changes: 15 additions & 0 deletions projects/mongo-go-driver/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
homepage: "https://github.com/mongodb/mongo-go-driver"
language: go
main_repo: "https://github.com/mongodb/mongo-go-driver"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
primary_contact: "dbx-go@mongodb.com"
auto_ccs:
- qingyang.hu@mongodb.com
- matt.dale@mongodb.com
- kevin.albertson@mongodb.com
- preston.vasquez@mongodb.com
vendor_ccs:
- maxnair.dev@gmail.com