Skip to content

Commit

Permalink
Java-Issue: Fix logic bug (#652)
Browse files Browse the repository at this point in the history
Fix logic bug

Signed-off-by: Arthur Chan <[email protected]>

Signed-off-by: Arthur Chan <[email protected]>
Co-authored-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan and Arthur Chan authored Dec 1, 2022
1 parent 1cf9eaa commit b0598a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oss_fuzz_integration/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def patch_jvm_source_dead_link(server_directory, prefix):
links = re.findall(r'href=[\'"]?([^\'" >]+)', report)
links.extend(re.findall(r'[\'"]func_url[\'"]:\ [\'"]?([^\'" >]+)', report))
for link in [link for link in links if link.startswith(prefix)]:
if os.path.exists(os.path.join(server_directory, link[1:].split("#")[0])):
if not os.path.exists(os.path.join(server_directory, link[1:].split("#")[0])):
report = report.replace(link, "#")

# Write result back to js file
Expand Down

0 comments on commit b0598a2

Please sign in to comment.