Skip to content

olympus makernotes get lost or corrupt with 0.27.6 #2542

@tenzap

Description

@tenzap

Describe the bug

olympus makernotes get lost or corrupt with 0.27.6 (with 0.27.5 there is no problem)

To Reproduce

$ exiv2 --version
exiv2 0.27.6
$ exiv2 -pa 42_IndexError.jpg | grep -c Olympus
132

→ 132 lines of Olympus Makernotes

$ exiv2 -M"add  Exif.Photo.UserComment MyComment4" 42_IndexError.jpg
$ exiv2 -pa 42_IndexError.jpg | grep Olympus -c
Error: Failed to read Olympus IFD Makernote header.
0

→ 0 line of Olympus Makernotes + error

Input file can be taken here: https://github.com/ianare/exif-samples/raw/master/jpg/tests/42_IndexError.jpg

Expected behavior

Makernotes should still be there after adding a tag.

Desktop (please complete the following information):

  • Debian bookworm
  • Exiv2 version and source: 0.27.6 from debian bookworm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedmakerNoteAnything related to one of the various supported MakerNote formats

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions