-
-
Notifications
You must be signed in to change notification settings - Fork 286
Description
I used dwg2dxf for testing.
testfile: libredwg\test\test-data\example_2007.dwg
In the following code of the function dwg_convert_SAB_to_SAT1
case 14: // subident
{
int len = bit_read_RC (&src);
if (len == 0)
return 0;
if (src.byte + len >= src.size) // Will enter this condition
{
LOG_ERROR ("Invalid SAB len=%d [RC]", len);
bit_chain_free (&dest);
_obj->num_blocks = 0;
_obj->encr_sat_data[0] = NULL;
return 1;
}
But at this time, the correct data has actually been solved.
dest.chain:
“21200 0 2 0
16 Autodesk AutoCAD 20 ASM 223.0.1.1930 OSX 24 Mon Jun 18 11:09:39 2018
1 1e-06 1e-10
asmheader
body
lump
shell
face
loop
plane-surface
coedge
coedge
coedge
edge
coedge
edge
edge
vertex
vertex
straight-curve
edge
vertex
straight-curve
vertex
straight-curve
point
point
straight-curve
point
point
End-of-ACIS-”
Maybe src.size is missing a byte