Mercurial > hg > dmlib
changeset 1841:fc4841460fad
Attempt to avoid misprobes of "Rainbow Painter (unpacked)" as packed Doodle files.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Jun 2018 19:07:01 +0300 |
parents | 8d6bb48f2806 |
children | a3fc0cab1a60 |
files | tools/lib64fmts.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64fmts.c Fri Jun 22 19:02:49 2018 +0300 +++ b/tools/lib64fmts.c Fri Jun 22 19:07:01 2018 +0300 @@ -29,7 +29,9 @@ (dmCompareAddr16(buf, 0, 0x1c00) || dmCompareAddr16(buf, 0, 0x5c00))) { // Packed variant - if (fmt->size == 0xfe && buf->len != fmt->size) + if (fmt->size == 0xfe && + buf->len != fmt->size && + buf->len != 10242) // Attempt to avoid misprobes of "Rainbow Painter (unpacked)" return DM_PROBE_SCORE_MAX; // Unpacked variant