Skip to content

Commit

Permalink
profile: downgrade the "line number" messages to info (ossf#481)
Browse files Browse the repository at this point in the history
to make it easier to look for actual errors.

It turns
```
ERROR:fuzz_introspector.datatypes.project_profile:Line numbers are
different in the same function
```
into
```
INFO:fuzz_introspector.datatypes.project_profile:Line numbers are
different in the same function: LLVMFuzzerTestOneInput:19:22, ignoring
```

Signed-off-by: Evgeny Vereshchagin <[email protected]>

Signed-off-by: Evgeny Vereshchagin <[email protected]>
  • Loading branch information
evverx authored Aug 17, 2022
1 parent 764785e commit f7f885a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fuzz_introspector/datatypes/project_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def __init__(self, profiles: List[fuzzer_profile.FuzzerProfile]):
# LLVMFuzzerTestOneInput. In this case we just gracefully
# continue and ignore issues.
if ln1 != ln2:
logger.error("Line numbers are different in the same function")
logger.info(
f"Line numbers are different in the same function: "
f"{func_name}:{ln1}:{ln2}, ignoring"
)
continue
new_line_counts.append((ln1, max(ht1, ht2)))
self.runtime_coverage.covmap[func_name] = new_line_counts
Expand Down

0 comments on commit f7f885a

Please sign in to comment.