libredwg icon indicating copy to clipboard operation
libredwg copied to clipboard

Issue with entity parsing in pre2.10

Open michal-josef-spacek opened this issue 2 years ago • 0 comments

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

michal-josef-spacek avatar May 13 '22 21:05 michal-josef-spacek