Skip to content

Commit 0c73bff

Browse files
authored
Merge branch 'master' into AA/anotherPythonFix
2 parents 31c60ab + 583430e commit 0c73bff

File tree

111 files changed

+995
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+995
-325
lines changed

infra/base-images/base-builder/compile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ OSS_FUZZ_ON_DEMAND="${OSS_FUZZ_ON_DEMAND:-0}"
2525
RUST_SANITIZER=$SANITIZER
2626

2727
if [ "$FUZZING_LANGUAGE" = "jvm" ]; then
28-
if [ "$FUZZING_ENGINE" != "libfuzzer" ] && [ "$FUZZING_ENGINE" != "wycheproof" ]; then
29-
echo "ERROR: JVM projects can be fuzzed with libFuzzer or tested with wycheproof engines only."
30-
exit 1
31-
fi
3228
if [ "$SANITIZER" != "address" ] && [ "$SANITIZER" != "coverage" ] && [ "$SANITIZER" != "undefined" ] && [ "$SANITIZER" != "none" ] && [ "$SANITIZER" != "introspector" ]; then
3329
echo "ERROR: JVM projects can be fuzzed with AddressSanitizer or UndefinedBehaviorSanitizer or Introspector only."
3430
exit 1

infra/build/functions/build_lib.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ class SignedPolicyDocument:
9595
EngineInfo(upload_bucket='clusterfuzz-builds-no-engine',
9696
supported_sanitizers=['address'],
9797
supported_architectures=['x86_64']),
98-
'wycheproof':
99-
EngineInfo(upload_bucket='clusterfuzz-builds-wycheproof',
100-
supported_sanitizers=['none'],
101-
supported_architectures=['x86_64']),
10298
'centipede':
10399
EngineInfo(upload_bucket='clusterfuzz-builds-centipede',
104100
supported_sanitizers=['address', 'none'],

infra/indexer/frontend/ast_visitor.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include "llvm/ADT/SmallString.h"
5252
#include "llvm/ADT/SmallVector.h"
5353
#include "llvm/ADT/StringRef.h"
54+
#include "llvm/Config/llvm-config.h"
5455
#include "llvm/Support/Casting.h"
5556
#include "llvm/Support/raw_ostream.h"
5657

@@ -864,7 +865,11 @@ const clang::CXXRecordDecl* GetCXXRecordForType(const clang::QualType& type) {
864865
}
865866
const auto* record_type = derived_type->castAs<clang::RecordType>();
866867
CHECK(record_type);
868+
#if LLVM_VERSION_MAJOR > 22
869+
const clang::RecordDecl* decl = record_type->getDecl();
870+
#else
867871
const clang::RecordDecl* decl = record_type->getOriginalDecl();
872+
#endif
868873
CHECK(decl);
869874
return llvm::dyn_cast<clang::CXXRecordDecl>(decl);
870875
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM gcr.io/oss-fuzz-base/base-clang-full:ubuntu-20-04
2+
3+
RUN mkdir /indexer
4+
WORKDIR /indexer
5+
COPY . /indexer
6+
7+
RUN apt-get update && apt-get install -y libsqlite3-dev make zlib1g-dev
8+
RUN mkdir build && cd build && cmake .. && cmake --build . -j -v
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM gcr.io/oss-fuzz-base/base-clang-full:ubuntu-24-04
2+
3+
RUN mkdir /indexer
4+
WORKDIR /indexer
5+
COPY . /indexer
6+
7+
RUN apt-get update && apt-get install -y libsqlite3-dev make zlib1g-dev
8+
RUN mkdir build && cd build && cmake .. && cmake --build . -j -v

projects/ada-url/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ RUN apt-get update && apt-get install -y make cmake
1919
RUN git clone --depth 1 https://github.com/ada-url/ada ada-url
2020
RUN cp ada-url/fuzz/build.sh $SRC/
2121
WORKDIR ada-url
22+
COPY run_tests.sh $SRC/

projects/ada-url/run_tests.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -eu
2+
#
3+
# Copyright 2026 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
################################################################################
18+
19+
ctest --test-dir build-tests

projects/anise/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

projects/anise/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash -eu
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

projects/brpc/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ RUN apt-get update && apt-get install -y cmake libgflags-dev libprotobuf-dev lib
1818
RUN git clone --depth 1 https://github.com/apache/brpc.git
1919
RUN cp $SRC/brpc/test/fuzzing/oss-fuzz.sh $SRC/build.sh
2020
WORKDIR $SRC/brpc/
21+
COPY run_tests.sh $SRC/

0 commit comments

Comments
 (0)