Skip to content

Return fs errors for offset overflow and backend over-reporting #1323

Description

@wdcui

Resolver and built-in backend offset arithmetic currently contains unchecked or unwrap-based additions, and resolver code trusts backend byte counts. Define the intended error mapping, then replace overflow panics with typed fs errors and reject backends that report more bytes than the supplied buffer. Cover resolver, InMem, TarRo, and overlay copy paths. Deferred from #1318 to avoid changing established behavior during the refactor.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions