Skip to content

fix: ssdeep computation gets stuck in infinite loop on large files - #36

Merged
glaslos merged 1 commit into
glaslos:mainfrom
glimps-jpr:main
Dec 13, 2025
Merged

fix: ssdeep computation gets stuck in infinite loop on large files#36
glaslos merged 1 commit into
glaslos:mainfrom
glimps-jpr:main

Conversation

@glimps-jpr

Copy link
Copy Markdown
Contributor

for ; uint64(uint32(blockMin)<<i*spamSumLength) < state.totalSize; i++ {
The value computed on left side of < operand can not exceed uint32 max value. Thus, when trying to compute ssdeep for larger files the program gets stuck in this for loop infinitely.

@glaslos
glaslos merged commit 5b2d0bd into glaslos:main Dec 13, 2025
1 check passed
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.

2 participants