Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Check for missing shared libs on failed LibFuzzer -help check #1812

Merged
merged 9 commits into from
Apr 21, 2022

Conversation

ranweiler
Copy link
Member

@ranweiler ranweiler commented Apr 18, 2022

Add existing shared library error reporting capabilities to the LibFuzzer helpers used by the actual task worker.

Closes #1806.

Manual testing

  • linux-libfuzzer-linked-library w/missing dependency
  • windows-libfuzzer-linked-library w/missing dependency

@ranweiler
Copy link
Member Author

The missing library logic kicks in as expected. There are currently 2 issues with the error messages:

  • Windows missing library detection fails on a fresh image's registry. This can be addressed separate from this PR, and our fallback error message is no worse than before.
  • In the OneFuzz context, we may over-report missing libraries on Linux. Again, this can be addressed in a separate PR, and appears to be due to env var configuration in the way we invoke the shared library checker.

@ranweiler ranweiler merged commit 2075d55 into microsoft:main Apr 21, 2022
@ranweiler ranweiler deleted the libfuzzer-dyn-lib-check branch April 21, 2022 19:50
@ghost ghost locked as resolved and limited conversation to collaborators May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When LibFuzzer -help=1 check fails, report any missing shared libraries
3 participants