1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff -ru libredwg-0.9.orig/src/spec.h libredwg-0.9/src/spec.h
--- libredwg-0.9.orig/src/spec.h 2019-09-30 11:03:41.000000000 +0200
+++ libredwg-0.9/src/spec.h 2019-10-20 12:19:02.446065755 +0200
@@ -358,7 +358,7 @@
for (rcount1 = 0; rcount1 < (BITCODE_BL)times; rcount1++)
// checked with constant times
# define REPEAT_N(times, name, type) \
- if (dat->version >= R_2000 && (BITCODE_BL)times > 0x1000) \
+ if (dat->version >= R_2000 && (BITCODE_BL)times > 0x7ff) \
{ \
LOG_ERROR ("Invalid %s." #name " rcount1 %ld", SAFEDXFNAME, \
(long)times); \
@@ -369,7 +369,7 @@
// checked with var. times
# define _REPEAT(times, name, type, idx) \
- if (dat->version >= R_2000 && (BITCODE_BL)_obj->times > 0x1000) \
+ if (dat->version >= R_2000 && (BITCODE_BL)_obj->times > 0x7ff) \
{ \
LOG_ERROR ("Invalid %s." #name " rcount" #idx " %ld", SAFEDXFNAME, \
(long)_obj->times); \
@@ -410,7 +410,7 @@
#ifndef _REPEAT_NF
// checked
# define _REPEAT_NF(times, name, type, idx) \
- if (dat->version >= R_2000 && times > 0x1000) \
+ if (dat->version >= R_2000 && times > 0x7ff) \
{ \
LOG_ERROR ("Invalid %s." #name " rcount" #idx " %ld", SAFEDXFNAME, \
(long)times); \
|