You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Protect only the count of an unread Exif table whose entries do not fit #162
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.
Activity