ossf / fuzz-introspector

Fuzz Introspector -- introspect, extend and optimise fuzzers
https://fuzz-introspector.readthedocs.io
Apache License 2.0
378 stars 54 forks source link

webapp: Fix and unify source file path #1736

Closed arthurscchan closed 2 months ago

arthurscchan commented 2 months ago

This PR fixes an issue with non-unified target file strings. For JVM projects, the target file string is a path of the source file within the package directory, which does not start with a '/'. This behaviour differs from other project languages like C/C++, where the path always starts with a '/'. This PR unifies the behaviour to allow the logic to handle both cases successfully.