changeset 1760:c944844e437f

Improve fmtProbeECIPacked() probing.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 11 Jun 2018 19:52:10 +0300
parents 027fb7313d85
children b940b72d1b4d
files tools/lib64fmts.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Mon Jun 11 18:09:00 2018 +0300
+++ b/tools/lib64fmts.c	Mon Jun 11 19:52:10 2018 +0300
@@ -780,7 +780,8 @@
     // and compare to value in buf[2] which is the RLE marker
     if (len < 128 ||
         !dmCompareAddr16(buf, 0, fmt->addr) ||
-        len == 16386) // Crest Hires FLI Designer
+        // Try to avoid misprobe of Crest Hires FLI Designer and Cosmos Design format
+        len == 16386 || len == 16385)
         return DM_PROBE_SCORE_FALSE;
 
     for (n = 0, i = 3; i < len; i++)