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

Revert "fix copy constructors" #3174

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Revert "fix copy constructors" #3174

merged 1 commit into from
Feb 19, 2025

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Feb 18, 2025

This reverts commit afb2d99.

This commit is wrong and ends up resulting in use after frees because of C pointers. The proper solution is shared_ptr instead of C pointers but that's a lot more involved than reverting this.

Fixes: #3168

This reverts commit afb2d99.

This commit is wrong and ends up resulting in use after frees because of
C pointers. The proper solution is shared_ptr instead of C pointers but
that's a lot more involved than reverting this.

Signed-off-by: Rosen Penev <[email protected]>
Copy link
Collaborator

@kevinbackhouse kevinbackhouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'd like to try following this up with a refactoring that replaces some of the raw pointers with unique_ptr.

@kevinbackhouse
Copy link
Collaborator

@Mergifyio backport 0.28.x

Copy link
Contributor

mergify bot commented Feb 19, 2025

backport 0.28.x

✅ Backports have been created

@neheb neheb merged commit ebff8b4 into Exiv2:main Feb 19, 2025
60 checks passed
@neheb neheb deleted the cop branch February 19, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use after free error when calling API Exiv2::TiffParser::encode
2 participants