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 ---

The issue describes an infinite loop in the dwgread function when processing a DWG file generated by the same library, which could lead to a Denial of Service (DoS) if exploited with specially crafted files.