mirror of https://github.com/google/oss-fuzz.git
Fix check to escape control characters, CDATA end sequence
This commit is contained in:
parent
4411467e0b
commit
b519da3809
|
@ -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"?>
|
||||
|
|
Loading…
Reference in New Issue