There is an infinite loop in the dwgread on file which I generated by the libredwg.

File:
[test.dwg.gz](https://github.com/LibreDWG/libredwg/files/11341524/test.dwg.gz)

dwgread infinite loop in DWG file generated by libredwg
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : dwgread infinite loop in DWG file generated by libredwg
Issue date:

--- start body ---
There is an infinite loop in the dwgread on file which I generated by the libredwg.

File:
[test.dwg.gz](https://github.com/LibreDWG/libredwg/files/11341524/test.dwg.gz)

--- end body ---
