Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/clusterfuzz/_internal/base/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def decode_to_unicode(obj):
if not hasattr(obj, 'decode'):
return obj

return obj.decode('utf-8', errors='ignore')
return obj.decode('utf-8', errors='replace')


def encode_as_unicode(obj):
Expand Down
3 changes: 3 additions & 0 deletions src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,9 @@ def add_additional_testcase_run_data(testcase_run, fully_qualified_fuzzer_name,
def get_fuzzer_metadata_from_output(fuzzer_output):
"""Extract metadata from fuzzer output."""
metadata = {}
fuzzer_output = fuzzer_output.replace(
'\r', '').replace('\x85', '').replace(
'\u2028', '').replace('\u2029', '')
for line in fuzzer_output.splitlines():
match = FUZZER_METADATA_REGEX.match(line)
if match:
Expand Down