Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sink analyser: Filter inaccessible callpath #1361

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Jan 15, 2024

Following #1358 and #1359, this PR further reduce possible redundant in sink function callpath generations by an additional filtering. From #1359, base accessible information for java methods is provided from the frontend result. This PR adds a new filter to avoid generating callpaths HTML files for inaccessible callpaths, that is callpaths start with methods that are not directly callable by users. These inaccessible call paths are filtered out to reduce the number of possible call paths for each sink function discovered. This PR also change the max count for call path generation per sink functions to a configurable value in constants.py and significantly decreases the default value to 2. This could help avoid flooding a long list of possible call paths which are useless for analysis purposes.

@arthurscchan arthurscchan force-pushed the filter-inaccessible-callpath branch from b855e86 to 39a4557 Compare January 15, 2024 10:55
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
@arthurscchan arthurscchan force-pushed the filter-inaccessible-callpath branch from 616d82c to 289b834 Compare January 15, 2024 12:25
@arthurscchan arthurscchan marked this pull request as ready for review January 15, 2024 15:23
@arthurscchan arthurscchan force-pushed the filter-inaccessible-callpath branch from 1d34498 to 289b834 Compare January 16, 2024 11:09
@DavidKorczynski DavidKorczynski merged commit 64644ae into ossf:main Jan 17, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants