Skip to content

tiff files with large tags are destroyed on metadata update. #3071

Open
@freee-d

Description

@freee-d

This test in tiffvisitor_int.cpp at line 1257

    uint32_t count = getULong(p, byteOrder());
    if (count >= 0x10000000) {
#ifndef SUPPRESS_WARNINGS
      EXV_ERROR << "Directory " << groupName(object->group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
                << std::hex << object->tag() << " has invalid size " << std::dec << count << "*" << typeSize
                << "; skipping entry.\n";
#endif

Does nothing useful. It ignores and so removes on file update large tags. Photoshop can easily create tiff tiles with tag 37724 exceeding this test limit. Such files are destroyed on update by exiv2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions