Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
freee-d opened this issue Nov 19, 2024 · 0 comments
Open

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

freee-d opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@freee-d
Copy link

freee-d commented Nov 19, 2024

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.

@freee-d freee-d added the bug label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant