From 4b015aefd81ad7e95da6c80a7c1e4309c1e8049f Mon Sep 17 00:00:00 2001 From: hai007 Date: Mon, 8 Feb 2021 04:15:13 -0800 Subject: [PATCH] OSS fixes. --- cpp/core/internal/fuzzers/BUILD | 14 ++++++++++++++ cpp/core/internal/fuzzers/offline_frames_fuzzer.cc | 14 ++++++++++++++ cpp/core/internal/stoppable_service_controller.h | 14 ++++++++++++++ cpp/platform/base/cancellation_flag.cc | 14 ++++++++++++++ cpp/platform/base/cancellation_flag.h | 14 ++++++++++++++ cpp/platform/base/cancellation_flag_test.cc | 14 ++++++++++++++ cpp/platform/base/feature_flags.h | 14 ++++++++++++++ cpp/platform/base/feature_flags_test.cc | 14 ++++++++++++++ 8 files changed, 112 insertions(+) diff --git a/cpp/core/internal/fuzzers/BUILD b/cpp/core/internal/fuzzers/BUILD index 0c113e12..ca304322 100644 --- a/cpp/core/internal/fuzzers/BUILD +++ b/cpp/core/internal/fuzzers/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 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 +# +# https://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. + load("//security/fuzzing/blaze:cc_fuzz_target.bzl", "cc_fuzz_target") cc_fuzz_target( diff --git a/cpp/core/internal/fuzzers/offline_frames_fuzzer.cc b/cpp/core/internal/fuzzers/offline_frames_fuzzer.cc index 50a6062d..432970d2 100644 --- a/cpp/core/internal/fuzzers/offline_frames_fuzzer.cc +++ b/cpp/core/internal/fuzzers/offline_frames_fuzzer.cc @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #include "core/internal/offline_frames.h" #include "platform/base/byte_array.h" diff --git a/cpp/core/internal/stoppable_service_controller.h b/cpp/core/internal/stoppable_service_controller.h index 4e1f1be6..3a46e165 100644 --- a/cpp/core/internal/stoppable_service_controller.h +++ b/cpp/core/internal/stoppable_service_controller.h @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #ifndef CORE_INTERNAL_STOPPABLE_SERVICE_CONTROLLER_H_ #define CORE_INTERNAL_STOPPABLE_SERVICE_CONTROLLER_H_ diff --git a/cpp/platform/base/cancellation_flag.cc b/cpp/platform/base/cancellation_flag.cc index f317355b..7aaf4d2d 100644 --- a/cpp/platform/base/cancellation_flag.cc +++ b/cpp/platform/base/cancellation_flag.cc @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #include "platform/base/cancellation_flag.h" #include "platform/base/feature_flags.h" diff --git a/cpp/platform/base/cancellation_flag.h b/cpp/platform/base/cancellation_flag.h index 4ef3f1ba..a9cd9450 100644 --- a/cpp/platform/base/cancellation_flag.h +++ b/cpp/platform/base/cancellation_flag.h @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #ifndef PLATFORM_BASE_CANCELLATION_FLAG_H_ #define PLATFORM_BASE_CANCELLATION_FLAG_H_ diff --git a/cpp/platform/base/cancellation_flag_test.cc b/cpp/platform/base/cancellation_flag_test.cc index 80bb64a6..e5f05af9 100644 --- a/cpp/platform/base/cancellation_flag_test.cc +++ b/cpp/platform/base/cancellation_flag_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #include "platform/base/cancellation_flag.h" #include "platform/base/feature_flags.h" diff --git a/cpp/platform/base/feature_flags.h b/cpp/platform/base/feature_flags.h index 7972190e..ceb0c173 100644 --- a/cpp/platform/base/feature_flags.h +++ b/cpp/platform/base/feature_flags.h @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #ifndef PLATFORM_BASE_FEATURE_FLAGS_H_ #define PLATFORM_BASE_FEATURE_FLAGS_H_ diff --git a/cpp/platform/base/feature_flags_test.cc b/cpp/platform/base/feature_flags_test.cc index d585a7fc..2ad5e44f 100644 --- a/cpp/platform/base/feature_flags_test.cc +++ b/cpp/platform/base/feature_flags_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 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 +// +// https://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. + #include "platform/base/feature_flags.h" #include "platform/base/medium_environment.h"