Skip to content

Fix similarity score for binaries without flow graph edges - #91

Open
zunnurawan wants to merge 1 commit into
google:mainfrom
zunnurawan:issue-90-edge-term
Open

zunnurawan wants to merge 1 commit into
google:mainfrom
zunnurawan:issue-90-edge-term

Conversation

@zunnurawan

Copy link
Copy Markdown

When neither binary has any flow graph edges, the edge term of the program similarity score evaluated to 0, capping the score at 0.65 even for a self-diff. Instead, treat this as full match, since there is no disagreement.

Fixes #90

Verified with the no_jumps sample from the issue: self-diff similarity goes from 64.565% to 99.3307% (1.0 × confidence). Diffs of binaries that have edges are unaffected.

When neither binary has any flow graph edges, the edge term of the
program similarity score evaluated to 0, capping the score at 0.65
even for a self-diff. Instead, treat this as full match, since
there is no disagreement.

Fixes google#90
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.

Similarity score is capped at 0.65 for binaries with no flow graph edges

1 participant