forked from protocolbuffers/upb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AdvancedSpace/update/fork-rebase
Update/fork rebase
- Loading branch information
Showing
135 changed files
with
13,616 additions
and
23,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# temporary fix for https://github.com/bazelbuild/bazel/issues/12905 on macOS | ||
build --features=-debug_prefix_map_pwd_is_dot | ||
|
||
# Use our custom-configured c++ toolchain. | ||
|
||
build:m32 --copt=-m32 --linkopt=-m32 | ||
build:asan --copt=-fsanitize=address --linkopt=-fsanitize=address | ||
build:valgrind --run_under='valgrind --leak-check=full --error-exitcode=1' | ||
|
||
build:ubsan --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 | ||
# Workaround for the fact that Bazel links with $CC, not $CXX | ||
# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748 | ||
build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr | ||
# Workaround for https://bugs.llvm.org/show_bug.cgi?id=16404 | ||
build:ubsan --linkopt=--rtlib=compiler-rt --linkopt=-lunwind | ||
|
||
build:Werror --copt=-Werror | ||
build:Werror --per_file_copt=json/parser@-Wno-error | ||
build:Werror --per_file_copt=com_google_protobuf@-Wno-error | ||
|
||
# GCC's -fanalyzer, a deeper static analysis than normal warnings. | ||
build:analyzer --copt=-fanalyzer --copt=-Werror | ||
build:analyzer --per_file_copt=json/parser@-fno-analyzer | ||
build:analyzer --per_file_copt=com_google_protobuf@-fno-analyzer | ||
build:analyzer --per_file_copt=com_github_google_benchmark@-fno-analyzer | ||
|
||
build:asan-fuzzer --copt=-fsanitize=address,fuzzer --linkopt=-fsanitize=address,fuzzer --define fuzz=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CIFuzz | ||
on: [pull_request] | ||
jobs: | ||
Fuzzing: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sanitizer: [address, undefined] | ||
steps: | ||
- name: Build Fuzzers (${{ matrix.sanitizer }}) | ||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'upb' | ||
dry-run: false | ||
sanitizer: ${{ matrix.sanitizer }} | ||
- name: Run Fuzzers (${{ matrix.sanitizer }}) | ||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'upb' | ||
fuzz-seconds: 600 | ||
dry-run: false | ||
sanitizer: ${{ matrix.sanitizer }} | ||
- name: Upload Crash | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: ${{ matrix.sanitizer }}-artifacts | ||
path: ./out/artifacts |
Oops, something went wrong.