diff tools/lib64fmts.c @ 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 821b8755fcbd
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