Skip to content

Reject invalid section references and duplicate symbol identities in ObjectFile #56

Closed

Description

@LunaStev

Current evidence

Audit baseline: master 3ac33ec1, after #11. Source: object/src/formats/elf.rs:239.

Reproduced through ObjectFile: a symbol with section_index Some(999) in a one-section object is accepted and converted to SHN_UNDEF. Static inspection also shows duplicate names are retained while relocation lookup picks the first one.

Scope

Difficulty: medium.

Validate symbol section references and define a unique symbol identity model before serializing. Do not convert an invalid definition into an external declaration.

Completion criteria

  • Invalid section references return an error.
  • Conflicting duplicate symbols cannot silently change relocation binding.
  • Tests distinguish legitimate undefined symbols from malformed definitions.

Backlog index: #12. This issue owns only the bounded work described above.

Activity

  1. added
    bug
    help wanted
    needs testing
    object
    priority high
    on Sep 18, 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

    bughelp wantedneeds testingobjectpriority high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions