[CIFuzz] fix bug (#5602)

Signed-off-by: Asra Ali <asraa@google.com>
This commit is contained in:
asraa 2021-04-12 13:19:54 -04:00 committed by GitHub
parent c9b3d057b0
commit 1b9366c1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -142,10 +142,10 @@ class FuzzTarget:
return FuzzResult(None, None)
utils.binary_print(b'Fuzzer: %s. Detected bug:\n%s' %
(self.target_name.encode(), stderr))
(self.target_name.encode(), result.stderr))
if self.is_crash_reportable(testcase):
# We found a bug in the fuzz target and we will report it.
return FuzzResult(testcase, stderr)
return FuzzResult(testcase, result.stderr)
# We found a bug but we won't report it.
return FuzzResult(None, None)