Mercurial > hg > dmlib
diff tools/lib64fmts.c @ 2591:b2c510f851dc
Adjust Koala format probing to allow for file lengths between 10002 and
10004 bytes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 25 Dec 2022 02:37:11 +0200 |
parents | 9807ae37ad69 |
children | ee6225ed27ec |
line wrap: on
line diff
--- a/tools/lib64fmts.c Tue Dec 13 10:09:40 2022 +0200 +++ b/tools/lib64fmts.c Sun Dec 25 02:37:11 2022 +0200 @@ -605,8 +605,8 @@ { int score = DM_PROBE_SCORE_false; - if (buf->len == 10003 || - buf->len == 10004) + if (buf->len >= 10002 && + buf->len <= 10004) score += DM_PROBE_SCORE_MAYBE; if (dmCompareAddr16(buf, 0, fmt->addr))