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

Enforce mimum merges when using match merging. #2188

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tsaglam
Copy link
Member

@tsaglam tsaglam commented Feb 14, 2025

For pairs of unrelated programs, match merging may increase the similarity as it is a heuristic-based approach to revert the effects of obfuscation. To reduce this effect on false positives, this PR introduces a threshold for the minimum number of merges. Below this threshold, the merged matches are discarded, and the original matches are used. Resolves #2077.

TODO:

  • Adapt tests
  • Introduce CLI parameter instead of hard-coded constant
  • tune default value

…sing match merging. Below this threshold, merged matches are discarded.
@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels Feb 14, 2025
@tsaglam tsaglam linked an issue Feb 14, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subsequence match merging: implement minimum number of merges
1 participant