Skip to content

Crash on malformed input files due to out of range arguments #28

@jasperla

Description

@jasperla

An input file such as this, as created and minimized with AFL:

ssdeep,1.0--blocksize:hash:hash,filename
"

crashes ssdeep when provided as input to ssdeep -m $FILE:

% ./inst/bin/ssdeep -m ssdeep.crash
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 2) > this->size() (which is 1)
zsh: abort      ./inst/bin/ssdeep -m ssdeep.crash
%

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