aboutsummaryrefslogtreecommitdiff
path: root/format.sh
diff options
context:
space:
mode:
authorNorbert Schneider <mail@bertschneider.de>2022-01-12 08:48:37 +0100
committerGitHub <noreply@github.com>2022-01-12 08:48:37 +0100
commit0a80fb8af1726d1e30b12cec7500af82941f10d9 (patch)
treea2750a87f3cceb410e8f46688fff5752bc58b687 /format.sh
parentb94c374c304f24be5ccff68d6ba61bd920b63846 (diff)
downloadjazzer-api-0a80fb8af1726d1e30b12cec7500af82941f10d9.tar.gz
Split crash reproducer data
If the recorded FuzzedDataProvider invocation data gets too long it can not be assigned to one String variable in the crash reproducer template anymore. More concretely one constant pool CONSTANT_Utf8_info entry can only hold data of a size up to uint16. This change splits up the recorded data into multiple chunks to always generate valid crash reproducers. Furthermore, a tests directory is introduced to hold an explicit Jazzer integration test to verify the issue. The integration test compiles and executes the generated crash reproducer to verify it's functionality.
Diffstat (limited to 'format.sh')
-rwxr-xr-xformat.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.sh b/format.sh
index f783f6e9..da310c63 100755
--- a/format.sh
+++ b/format.sh
@@ -3,7 +3,7 @@ find -name '*.cpp' -o -name '*.h' -o -name '*.java' | xargs clang-format-13 -i
# Kotlin
# curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.42.1/ktlint && chmod a+x ktlint
-ktlint -F "agent/**/*.kt" "driver/**/*.kt" "examples/**/*.kt" "sanitizers/**/*.kt"
+ktlint -F "agent/**/*.kt" "driver/**/*.kt" "examples/**/*.kt" "sanitizers/**/*.kt" "tests/**/*.kt"
# BUILD files
# go get github.com/bazelbuild/buildtools/buildifier
@@ -11,4 +11,4 @@ buildifier -r .
# Licence headers
# go get -u github.com/google/addlicense
-addlicense -c "Code Intelligence GmbH" agent/ bazel/ deploy/ docker/ driver/ examples/ sanitizers/ *.bzl
+addlicense -c "Code Intelligence GmbH" agent/ bazel/ deploy/ docker/ driver/ examples/ sanitizers/ tests/ *.bzl