libredwg
libredwg copied to clipboard
Issue with entity parsing in pre2.10
There is something wrong with entity parsing in work/preR13 branch. See example: shape.tar.gz There are two entities:
- LOAD
- SHAPE
Parse only first entity, because bad number "num" in src/decode.c - https://github.com/LibreDWG/libredwg/blob/09607bb52479d69356d07346e795fd98b7b867b9/src/decode.c#L5653 There is num = 8 on begin and then break in:
if (num + 1 >= dwg->header_vars.numentities)
break;
so parse only first entity