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

Really deprecate headerLoad(), headerCopyLoad() and headerUnload() #1574

Merged
merged 2 commits into from Mar 11, 2021

Conversation

pmatilai
Copy link
Member

headerLoad(), headerCopyLoad() and headerUnload() have been deprecated as unsafe since rpm 4.10, time to start pushing them out for real. The first two are unsafe because they don't take argument for size, the last one is because it doesn't return one so it forces using the unsafe variants.

Eliminate remaining in-tree uses of the unsafe variants and issue compile-time deprecation warnings on them now that we can.

There's no way to safely validate an object to which only a void
pointer is given. Use headerImport() and pass a size to make
verification possible, headerCopyLoad() has been long deprecated anyway.
headerLoad(), headerCopyLoad() and headerUnload() have been deprecated
as unsafe since rpm 4.10, time to start pushing them out for real.
The first two are unsafe because they don't take argument for size,
the last one is because it doesn't return one so it forces using the
unsafe variants.
@pmatilai pmatilai merged commit c3940ad into rpm-software-management:master Mar 11, 2021
@pmatilai pmatilai deleted the copyload-pr branch June 21, 2021 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants