[gluon] initial integration (#10170)

[Gluon](https://github.com/ProtonMail/gluon) is used by
[ProtonMail](https://proton.me/mail).
PR for fuzzing harness: https://github.com/ProtonMail/gluon/pull/341

---------

Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
This commit is contained in:
Arjun 2023-04-27 07:22:00 +05:30 committed by GitHub
parent c9abc07a64
commit 85f7a5e1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 0 deletions

21
projects/gluon/Dockerfile Normal file
View File

@ -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-go
RUN git clone --depth 1 https://github.com/ProtonMail/gluon.git
RUN go install github.com/AdamKorcz/go-118-fuzz-build@latest
COPY build.sh $SRC/
WORKDIR $SRC/gluon

23
projects/gluon/build.sh Normal file
View File

@ -0,0 +1,23 @@
#!/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
compile_native_go_fuzzer github.com/ProtonMail/gluon/imap FuzzNewParsedMessage fuzz_new_parsed_message
compile_native_go_fuzzer github.com/ProtonMail/gluon/rfc5322 FuzzParseAddress fuzz_parse_address
compile_native_go_fuzzer github.com/ProtonMail/gluon/rfc5322 FuzzRFC5322 fuzz_rfc5322
compile_native_go_fuzzer github.com/ProtonMail/gluon/rfc822 FuzzParseDec fuzz_parse_dec

View File

@ -0,0 +1,10 @@
homepage: "https://proton.me"
language: go
primary_contact: "security@proton.me"
auto_ccs:
- "ajsinghyadav00@gmail.com"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
main_repo: "https://github.com/ProtonMail/gluon"