Skip to content

Protect only the count of an unread Exif table whose entries do not fit #162

Backlog

Description

@decriptor

Problem

After #153, for every pointer target that no reader reads, RemovalPlan protects the bytes (at, min(at + 2 + 12*count + 4, length)). When the count it reads there is large, that range covers every later byte, so any removed value after it is refused. In practice that means a file with a bad Interop or Exif offset and a UserComment after it cannot have its Comment edited.

Proposed solution

When a would-be table's entries don't fit in the data, protect only its count bytes. Zeroing other bytes can't make such a table fit, so the rest needs no protection.

Context

This is a follow-up to #153 and part of #111.

Activity

  1. added
    enhancement
    on Nov 29, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions