Skip to content

Crashes during recursive hashing if there is a file on the 7th level or deeper #12

Description

@vovcacik

Hi, when I run ssdeep recursively on a directory the program will crash if the target dir contains any file on 7th level or deeper.

More observations:

  • the length of absolute path does not matter, i.e. it will crash when run from C:\
  • directory or file name length does not matter
  • there has to be a file on 7th or deeper level, otherwise it won't crash of there is only empty dir

OS: Windows 10 Pro
Reproducibility: 100 %
ssdeep -V: 2.14.1

# won't crash
mkdir a\b\c\d\e\f
type nul > a\b\c\d\e\f\6th-level.txt
ssdeep -r a

# will crash
mkdir a\b\c\d\e\f\g
type nul > a\b\c\d\e\f\g\7th-level.txt
ssdeep -r a

# won't crash
hashdeep -r a
md5deep -r a
sha1deep -r a
sha256deep -r a
tigerdeep -r a
whirlpooldeep -r a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions