[Rpm-maint] [rpm-software-management/rpm] Really deprecate headerLoad(), headerCopyLoad() and headerUnload() (#1574)

Panu Matilainen notifications at github.com
Wed Mar 10 12:29:49 UTC 2021


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.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1574

-- Commit Summary --

  * Eliminate remaining uses of unsafe headerCopyLoad() in the codebase
  * Issue build-time deprecation warnings for unsafe header interfaces

-- File Changes --

    M lib/header.h (3)
    M python/header-py.c (5)
    M sign/rpmgensig.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1574.patch
https://github.com/rpm-software-management/rpm/pull/1574.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1574
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210310/19d297fc/attachment.html>


More information about the Rpm-maint mailing list