Skip to content

Commit c625c11

Browse files
committed
Fix fuzzer output on failure and shared_libs
This will help debug failures in the fuzzer and declare properly the shared_lib dependency on libc++ instead of assuming the common libs available. Test: ABTD https://android-build.corp.google.com/abtd/run/L45900030007859592/?referrer=email Bug: 355009651 Change-Id: I93dc2907389968b78fc59c57162ac9499f1a5704
1 parent 13c2918 commit c625c11

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

libs/binder/tests/parcel_fuzzer/test_fuzzer/Android.bp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ sh_test_host {
5959
darwin: {
6060
enabled: false,
6161
},
62+
host: {
63+
data_libs: [
64+
"libc++",
65+
],
66+
},
6267
},
6368
test_suites: ["general-tests"],
6469
}

libs/binder/tests/parcel_fuzzer/test_fuzzer/run_fuzz_service_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ for CRASH_TYPE in PLAIN KNOWN_UID AID_SYSTEM AID_ROOT BINDER DUMP SHELL_CMD; do
3939
else
4040
echo -e "${color_failed}Failed: Unable to find successful fuzzing output from test_service_fuzzer_should_crash"
4141
echo "${color_reset}"
42+
cat "$FUZZER_OUT"
4243
exit 1
4344
fi
4445
done

0 commit comments

Comments
 (0)