Skip to content

low similarity of short ssdeeps #24

@CaldurG

Description

@CaldurG

Similarity of these ssdeeps is 36 but as you can see they are nearly identical.

char s0[] = "3:FEROlMk3/DXO2EXhIWAlvgulM4jIL2Q:FEROik3guWe9i4jIL2Q";
char s1[] = "3:FEROlMk3/DXO2EXhIWAlvgulM4jILdMQ:FEROik3guWe9i4jI2Q";
s01 = fuzzy_compare(s0, s1); // 36

Problem is in fuzzy.c in score_strings function. At the end of function there is code that can adjust the score.

 if (score > block_size/MIN_BLOCKSIZE * MIN(s1len, s2len))
  {
    score = block_size/MIN_BLOCKSIZE * MIN(s1len, s2len);
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions