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

Replace assertion with error message in TiffDirectory::writeDirEntry() #1846

Merged
merged 2 commits into from
Aug 6, 2021

Conversation

kevinbackhouse
Copy link
Collaborator

Fixes: #1845

I think this assertion is checking a property that isn't enforced during parsing, so it is better to replace it with an error message.

@kevinbackhouse kevinbackhouse added bug forward-to-main Forward changes in a 0.28.x PR to main with Mergify labels Aug 5, 2021
@kevinbackhouse kevinbackhouse added this to the v0.27.5 milestone Aug 5, 2021
@kevinbackhouse kevinbackhouse linked an issue Aug 5, 2021 that may be closed by this pull request
hassec
hassec previously approved these changes Aug 5, 2021
@hassec
Copy link
Member

hassec commented Aug 5, 2021

@kevinbackhouse it does look like some tests need adjusting for this change though

@mergify mergify bot dismissed hassec’s stale review August 5, 2021 15:47

Pull request has been modified.

@hassec hassec merged commit cb32b80 into Exiv2:0.27-maintenance Aug 6, 2021
kevinbackhouse added a commit that referenced this pull request Aug 6, 2021
Replace assertion with error message in TiffDirectory::writeDirEntry() (backport #1846)
@clanmills clanmills mentioned this pull request Aug 9, 2021
@kevinbackhouse kevinbackhouse deleted the FixIssue1845 branch August 11, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug forward-to-main Forward changes in a 0.28.x PR to main with Mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

assertion failure in TiffDirectory::writeDirEntry
3 participants