cat << EOF
Usage: ${EXEC} report [OPTS] FUZZ_PROJECT FUZZ_TARGET
-Pulls symbolized fuzzing logs for the fuzz target and corresponding
-artifacts to the host.
+Pulls fuzzing logs for the fuzz target and corresponding artifacts to
+the host.
Options:
-h, --help Prints this message.
mkdir -p "${run_dir}"
printf_err "%d:\t%s" "$i" "${run_dir}"
- # symbolize log
- log=$(basename "${logs[i]}")
- symbolized="${log/.log/.symbolized.log}"
- sdb_shell asan_symbolize.py -d '<' "${log_dir}/${log}" '>' "${log_dir}/${symbolized}" >/dev/null
-
- # pull symbolized log
- ${SDB_CMD} pull "${log_dir}/${symbolized}" "${run_dir}" >/dev/null
- sdb_shell rm -f "${log_dir}/${symbolized}" >/dev/null
+ # pull log
+ log_name=$(basename "${logs[i]}")
+ ${SDB_CMD} pull "${log_dir}/${log_name}" "${run_dir}" >/dev/null
# pull crash inputs if this run crashed
- crash_inputs=($(sed -En "s/.*Test unit written to (.*)/\1/p" "${run_dir}/${symbolized}"))
+ crash_inputs=($(sed -En "s/.*Test unit written to (.*)/\1/p" "${run_dir}/${log_name}"))
for crash_input in "${crash_inputs[@]}"; do
${SDB_CMD} pull "${crash_input}" "${run_dir}" >/dev/null
done
# get UBSan errors
# ignore error codes from grep - it returns non-zero code if it does not find any matches
- ubsan_errors=$(grep -c "runtime error" "${run_dir}/${symbolized}" || true)
+ ubsan_errors=$(grep -c "runtime error" "${run_dir}/${log_name}" || true)
if (( ${#crash_inputs[@]} + ubsan_errors > 0 )); then
(( errors_num += ${#crash_inputs[@]} + ubsan_errors ))