Skip to content

read_handle silently truncates counter > 8; rejecting it is a cheap walker-integrity gate #51

Closed

Description

@DrunkOnJava

From #46 / the #44 investigation: BitCursor::read_handle accepts any counter nibble and truncates values wider than a u64. A handle counter > 8 is impossible in a well-formed file (the three CUSTOM(727) records showed counter = 11), so it is a reliable signal that the cursor is not on an object at all — which is exactly what the handle-map address-space shortfall (#43/#44: the map addresses byte 1,289,590 while AcDb:AcDbObjects assembles to 1,192,851) produces. Do: make read_handle return an error for counter > 8, surface it as a distinct walker diagnostic (not a decoder error) in coverage_report, and add a BitWriter test. Keep it out of the entity decoders' error counts so coverage numbers stay comparable.

Activity

  1. added a commit that references this issue on Aug 30, 2026
    0e4d1f8
  2. added
    type:feature
    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:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions