#322 contains a Drawing2_C++.dwg, where all handles decode to something like 0.5.1000000D6 instead of 0.5.D6
libdxfrw handles them correctly

apparently everybody uses just 4-byte handles, not 8-byte. we need to cap it until at least r2007. TODO find out when they extended handles to 64bit. I assume r2007, but I might be wrong, as I found no such DWG's with bigger handle sizes than 4 (other than fuzzing or this one)
Or maybe with size > 4 there are more undocumented high bits. There is only such bit set.
Handle decoding overflows
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : Handle decoding overflows
Issue date:

--- start body ---
#322 contains a Drawing2_C++.dwg, where all handles decode to something like 0.5.1000000D6 instead of 0.5.D6
libdxfrw handles them correctly

apparently everybody uses just 4-byte handles, not 8-byte. we need to cap it until at least r2007. TODO find out when they extended handles to 64bit. I assume r2007, but I might be wrong, as I found no such DWG's with bigger handle sizes than 4 (other than fuzzing or this one)
Or maybe with size > 4 there are more undocumented high bits. There is only such bit set.
--- end body ---
