Skip to content

Commit d14d730

Browse files
committed
Fix patch for glue logic
Signed-off-by: Arthur Chan <[email protected]>
1 parent ea13ef6 commit d14d730

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

oss_fuzz_integration/oss-fuzz-patches.diff

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,16 @@ index d9077510f..5baa138a6 100755
108108
fi
109109

110110
mkdir -p $SRC/inspector
111-
@@ -336,7 +359,7 @@ if [ "$SANITIZER" = "introspector" ]; then
111+
@@ -335,6 +358,12 @@ if [ "$SANITIZER" = "introspector" ]; then
112+
REPORT_ARGS="$REPORT_ARGS --language=jvm"
112113
python3 /fuzz-introspector/src/main.py report $REPORT_ARGS
113114
cp -rf $SRC/inspector $OUT/inspector
115+
+ elif [ "$FUZZING_LANGUAGE" = "rust" ]; then
116+
+ echo "GOING rust route"
117+
+ REPORT_ARGS="$REPORT_ARGS --target_dir=$SRC/inspector"
118+
+ REPORT_ARGS="$REPORT_ARGS --language=rust"
119+
+ python3 /fuzz-introspector/src/main.py report $REPORT_ARGS
120+
+ cp -rf $SRC/inspector $OUT/inspector
114121
else
115-
- # C/C++
116-
+ # C/C++/Rust
122+
# C/C++
117123

118-
# Correlate fuzzer binaries to fuzz-introspector's raw data
119-
python3 /fuzz-introspector/src/main.py correlate --binaries_dir=$OUT/

0 commit comments

Comments
 (0)