Fix check to escape control characters, CDATA end sequence

This commit is contained in:
Abhishek Arya 2017-02-19 22:30:59 -08:00 committed by GitHub
parent 4411467e0b
commit b519da3809
1 changed files with 3 additions and 2 deletions

View File

@ -61,8 +61,9 @@ for FUZZER_BINARY in $(find $OUT/ -executable -type f); do
OUT_TXT=$(cat $FUZZER_STDOUT)
# Strip non-ascii characters.
OUT_TXT=${OUT_TXT//[^[:ascii:]]/}
# Escape non-printable characters and CDATA end sequence.
OUT_TXT=${OUT_TXT//[^[:print:]]/?}
OUT_TXT=${OUT_TXT//]]>/?}
REPORT_TEXT=$(cat <<-EOF
<?xml version="1.0" encoding="UTF-8"?>