[Rpm-maint] [rpm-software-management/rpm] Disallow duplicate entries in packages (Issue #1905)
Demi Marie Obenour
notifications at github.com
Fri Jan 28 23:57:47 UTC 2022
If I understand RPM’s source code correctly, it is possible for the same header tag to appear more than once in a package. This makes little sense and should not be allowed. I propose that RPM reject packages where the same tag appears more than once in the same header.
One way to achieve this is to do the following when loading a package from a file, as opposed to a header from the RPMDB:
- For each entry in the dribble, call findEntry() on the immutable region, and return an error if it finds something.
- After sorting the entries in the immutable region, check if there are two consecutive entries with the same tag. If so, error out.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1905
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1905 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220128/3c2c5e2c/attachment.html>
More information about the Rpm-maint
mailing list