Hello,

Please consider the attached file [test.zip](https://github.com/LibreDWG/libredwg/files/10999915/test.zip) 

First, I tried to read a DWG file using dwgread.exe with the following command (powershell):
`.\libredwg-0.12.5-win64\dwgread.exe -o .\PressEdited.json .\PressEdited.dwg`
This successfully generated a .json file.

Then, I tried to write the .json content again into a DWG file with the following command:
`.\libredwg-0.12.5-win64\dwgwrite.exe -o .\PressTest.dwg .\PressEdited.json 2>&1 > outputEdited.txt`
This generates a lot of **errors** and **doesn't write any DWG file**.
You can find the output inside the file: outputEdited.txt.
The file doesn't seem to be corrupted as I can view/save it using AUTOCAD2007.

Is it a bug or a corrupted file?
If it's a corrupted file, is it possible to fix these errors myself (without changing the dwg version)?

Thanks,

Dave
ERROR: bit_read_UMC: error parsing modular char, i=-1,j=42,result=0x1112e4a7652
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : ERROR: bit_read_UMC: error parsing modular char, i=-1,j=42,result=0x1112e4a7652
Issue date:

--- start body ---
Hello,

Please consider the attached file [test.zip](https://github.com/LibreDWG/libredwg/files/10999915/test.zip) 

First, I tried to read a DWG file using dwgread.exe with the following command (powershell):
`.\libredwg-0.12.5-win64\dwgread.exe -o .\PressEdited.json .\PressEdited.dwg`
This successfully generated a .json file.

Then, I tried to write the .json content again into a DWG file with the following command:
`.\libredwg-0.12.5-win64\dwgwrite.exe -o .\PressTest.dwg .\PressEdited.json 2>&1 > outputEdited.txt`
This generates a lot of **errors** and **doesn't write any DWG file**.
You can find the output inside the file: outputEdited.txt.
The file doesn't seem to be corrupted as I can view/save it using AUTOCAD2007.

Is it a bug or a corrupted file?
If it's a corrupted file, is it possible to fix these errors myself (without changing the dwg version)?

Thanks,

Dave
--- end body ---
