Skip to content

R2004 (AC1018) common object header mis-parses: ~20 'Bit cursor exhausted' errors per R2004 sample, independent of the R2007+ string-stream work #24

Closed

Description

@DrunkOnJava

After #23 (R2007+ string-stream ports) the aggregate error count is 94, and 60 of them are the three R2004 samples (*_2004.dwg, ~20 each), mostly Bit cursor exhausted: wanted 8 bits, 4 bits remain inside the common entity/object preamble. R2010/R2013 samples now decode with zero errors, so this is specific to the AC1018 object header layout (spec §19.1 / §19.4.1 for R2004: no string stream, handle stream at the end, obj_size semantics differ from R2007+).

Biggest remaining lever on measured coverage (R2004 files sit at 2.5%). Do: dump one R2004 LINE with examples/dump_line_payload.rs, walk the preamble bit-by-bit against §19.4.1, find where the R2004 path diverges (likely the entmode/num_reactors/xdic/nolinks block or the obj_size handling), fix with a BitWriter-built test, re-run coverage_report and paste the table.

Activity

  1. added a commit that references this issue on Aug 30, 2026
    52ed80f
  2. added
    type:bug
    and removed on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions