dxf_to_dwg_kept_as declares the kept version before reading, and acadrust
0.6.6 reads a FIELD's group 4 format only below AC1021, so an older drawing's
own field lost its format. Collect the group 4 formats by handle before reading
and put them back into an empty Field::format; field_formats then copies them
into value.format for 2007+. Carried-over fields keep their own value.format.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
acadrust reads a pre-2007 DXF FIELD's format only into Field::format, but its
DWG writer writes that for versions before 2007 only and value.format from 2007
on. Copy it over before writing.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The bridge fell back to decoding in the calling process whenever no worker
was configured, or the worker failed to start, which is exactly the case the
audit called out: acadrust allocates from sizes a hostile file declares, and
an allocation failure or stack overflow ends the process. Conversions are
now refused without a worker, a worker that cannot start is an error, and
allow_in_process() is the explicit opt-in for input known to be trusted.