logo

cmd-fuzzmatch

use ssdeep libfuzzy to find matching files git clone https://anongit.hacktivis.me/git/cmd-fuzzmatch.git
commit: 5e559c03aa929d7a1b1207ae7f6b32fd967d6410
parent 0963695027f2fb41d56ce8aa22bb7c8ac8cb4123
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  2 May 2026 17:58:01 +0200

make sure match lines are 0-terminated

Diffstat:

Mfuzzmatch.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fuzzmatch.c b/fuzzmatch.c @@ -100,7 +100,7 @@ main(int argc, char *argv[]) ssize_t len = 0; while(len < nread && !isspace(line[len])) len++; - line[len] = '\0'; + line[len++] = '\0'; if((matchbuf_len + len) > matchbuf_cap) { @@ -116,6 +116,7 @@ main(int argc, char *argv[]) } memcpy(matchbuf + matchbuf_len, line, len); + matchbuf_len += len; if(matches_len == matches_cap) {