Lucio Andrés Illanes Albornoz 0f705d
diff -ru libredwg-0.9.orig/src/spec.h libredwg-0.9/src/spec.h
Lucio Andrés Illanes Albornoz 0f705d
--- libredwg-0.9.orig/src/spec.h	2019-09-30 11:03:41.000000000 +0200
Lucio Andrés Illanes Albornoz 0f705d
+++ libredwg-0.9/src/spec.h	2019-10-20 12:19:02.446065755 +0200
Lucio Andrés Illanes Albornoz 0f705d
@@ -358,7 +358,7 @@
Lucio Andrés Illanes Albornoz 0f705d
       for (rcount1 = 0; rcount1 < (BITCODE_BL)times; rcount1++)
Lucio Andrés Illanes Albornoz 0f705d
 // checked with constant times
Lucio Andrés Illanes Albornoz 0f705d
 #  define REPEAT_N(times, name, type)                                         \
Lucio Andrés Illanes Albornoz 0f705d
-    if (dat->version >= R_2000 && (BITCODE_BL)times > 0x1000)                 \
Lucio Andrés Illanes Albornoz 0f705d
+    if (dat->version >= R_2000 && (BITCODE_BL)times > 0x7ff)                  \
Lucio Andrés Illanes Albornoz 0f705d
       {                                                                       \
Lucio Andrés Illanes Albornoz 0f705d
         LOG_ERROR ("Invalid %s." #name " rcount1 %ld", SAFEDXFNAME,           \
Lucio Andrés Illanes Albornoz 0f705d
                    (long)times);                                              \
Lucio Andrés Illanes Albornoz 0f705d
@@ -369,7 +369,7 @@
Lucio Andrés Illanes Albornoz 0f705d
 
Lucio Andrés Illanes Albornoz 0f705d
 // checked with var. times
Lucio Andrés Illanes Albornoz 0f705d
 #  define _REPEAT(times, name, type, idx)                                     \
Lucio Andrés Illanes Albornoz 0f705d
-    if (dat->version >= R_2000 && (BITCODE_BL)_obj->times > 0x1000)           \
Lucio Andrés Illanes Albornoz 0f705d
+    if (dat->version >= R_2000 && (BITCODE_BL)_obj->times > 0x7ff)            \
Lucio Andrés Illanes Albornoz 0f705d
       {                                                                       \
Lucio Andrés Illanes Albornoz 0f705d
         LOG_ERROR ("Invalid %s." #name " rcount" #idx " %ld", SAFEDXFNAME,    \
Lucio Andrés Illanes Albornoz 0f705d
                    (long)_obj->times);                                        \
Lucio Andrés Illanes Albornoz 0f705d
@@ -410,7 +410,7 @@
Lucio Andrés Illanes Albornoz 0f705d
 #ifndef _REPEAT_NF
Lucio Andrés Illanes Albornoz 0f705d
 // checked
Lucio Andrés Illanes Albornoz 0f705d
 #  define _REPEAT_NF(times, name, type, idx)                                  \
Lucio Andrés Illanes Albornoz 0f705d
-    if (dat->version >= R_2000 && times > 0x1000)                             \
Lucio Andrés Illanes Albornoz 0f705d
+    if (dat->version >= R_2000 && times > 0x7ff)                              \
Lucio Andrés Illanes Albornoz 0f705d
       {                                                                       \
Lucio Andrés Illanes Albornoz 0f705d
         LOG_ERROR ("Invalid %s." #name " rcount" #idx " %ld", SAFEDXFNAME,    \
Lucio Andrés Illanes Albornoz 0f705d
                    (long)times);                                              \