This is an automated email from the ASF dual-hosted git repository.
centic9 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new af5bdb8b02 Fuzzing: Add Xmx to see where too much memory is allocated
af5bdb8b02 is described below
commit af5bdb8b02b7cf89dad4aac950d3b42ff892d8ef
Author: Dominik Stadler <[email protected]>
AuthorDate: Tue Oct 27 19:38:54 2026 +0100
Fuzzing: Add Xmx to see where too much memory is allocated
Otherwise only the configured Jazzer rss size
triggers a native oom which we cannot properly analyze.
In fuzzAll.sh also produce a heap dump on OOM.
In GitHub Action call the script which computes coverage
and retrieve results as artifact
---
.github/workflows/fuzzing.yml | 47 ++++++++++++++++++++++++++-----------------
poi-fuzz/fuzzAll.sh | 4 ++--
2 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml
index da7b6bb81e..49625cc75f 100644
--- a/.github/workflows/fuzzing.yml
+++ b/.github/workflows/fuzzing.yml
@@ -78,61 +78,70 @@ jobs:
run: tar xzf jazzer-*.tar.gz
- name: Run Fuzzing - POIHSLFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHSLFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHSLF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHSLFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHSLF
- name: Run Fuzzing - POIHSSFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHSSFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHSSF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHSSFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHSSF
- name: Run Fuzzing - POIHWPFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHWPFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHWPF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHWPFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHWPF
- name: Run Fuzzing - POIOldExcelFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIOldExcelFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusOldExcel
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIOldExcelFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusOldExcel
- name: Run Fuzzing - POIXSLFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXSLFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusXSLF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXSLFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusXSLF
- name: Run Fuzzing - POIXSSFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXSSFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusXSSF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXSSFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusXSSF
- name: Run Fuzzing - POIXSSFBFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXSSFBFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusXSSF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXSSFBFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusXSSF
- name: Run Fuzzing - XLSX2CSVFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.XLSX2CSVFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusXSSF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.XLSX2CSVFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusXSSF
- name: Run Fuzzing - POIXWPFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXWPFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusXWPF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIXWPFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusXWPF
- name: Run Fuzzing - POIVisioFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIVisioFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusVisio
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIVisioFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusVisio
- name: Run Fuzzing - POIHDGFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHDGFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHDGF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHDGFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHDGF
- name: Run Fuzzing - POIHPSFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHPSFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHPSF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHPSFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHPSF
- name: Run Fuzzing - POIHMEFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHMEFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHMEF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHMEFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHMEF
- name: Run Fuzzing - POIHPBFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHPBFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHPBF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHPBFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHPBF
- name: Run Fuzzing - POIHSMFFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHSMFFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusHSMF
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.POIHSMFFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusHSMF
- name: Run Fuzzing - EncryptDecryptFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.EncryptDecryptFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120 corpusEncryptDecrypt
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.EncryptDecryptFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120 corpusEncryptDecrypt
- name: Run Fuzzing - FormulaParserFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.FormulaParserFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120
-dict=src/main/java/org/apache/poi/fuzz/FormulaParserFuzzer.dict
corpusFormulaParser
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.FormulaParserFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120
-dict=src/main/java/org/apache/poi/fuzz/FormulaParserFuzzer.dict
corpusFormulaParser
- name: Run Fuzzing - CellFormatFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.CellFormatFuzzer -rss_limit_mb=4096
-timeout=120 -max_total_time=120
-dict=src/main/java/org/apache/poi/fuzz/CellFormatFuzzer.dict corpusCellFormat
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**"
--target_class=org.apache.poi.fuzz.CellFormatFuzzer -rss_limit_mb=4500
-timeout=120 -max_total_time=120
-dict=src/main/java/org/apache/poi/fuzz/CellFormatFuzzer.dict corpusCellFormat
- name: Run Fuzzing - POIFuzzer
- run: ./jazzer --cp=build/libs/poi-fuzz-all.jar
--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**
--target_class=org.apache.poi.fuzz.POIFuzzer -rss_limit_mb=4096 -timeout=600
-max_total_time=600 corpus
+ run: ./jazzer --jvm_args=-Xmx3000m --cp=build/libs/poi-fuzz-all.jar
--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**
--target_class=org.apache.poi.fuzz.POIFuzzer -rss_limit_mb=4500 -timeout=600
-max_total_time=600 corpus
+
+ - name: Compute coverage
+ run: ./coverageReport.sh
+
+ - name: Upload coverage
+ uses: actions/upload-artifact@v7
+ with:
+ name: artifacts
+ path: poi-fuzz/build/reports/jacoco
- name: Upload reproducers
uses: actions/upload-artifact@v7
diff --git a/poi-fuzz/fuzzAll.sh b/poi-fuzz/fuzzAll.sh
index 69a6ae4181..0f0e810a45 100755
--- a/poi-fuzz/fuzzAll.sh
+++ b/poi-fuzz/fuzzAll.sh
@@ -72,11 +72,11 @@ for i in src/main/java/org/apache/poi/fuzz/*Fuzzer.java;do
;;
esac
- nice -n 19 ./jazzer \
+ JAVA_OPTS="-Xmx3000m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp"
nice -n 19 ./jazzer \
--cp=build/libs/poi-fuzz-all.jar \
"--instrumentation_includes=org.apache.poi.**:org.apache.xmlbeans.**" \
--target_class=org.apache.poi.fuzz.${CLASS} \
- -rss_limit_mb=2560 \
+ -rss_limit_mb=4500 \
-timeout=600 \
-max_total_time=600 \
${CORPUS} || (echo "Failed while running ${CLASS}" && exit 1)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]