[Rpm-maint] [rpm-software-management/rpm] Fix RPM_MIN_TYPE definition, RPM_NULL_TYPE is not a legit tag type (#1640)

Panu Matilainen notifications at github.com
Fri Apr 16 12:27:11 UTC 2021


RPM_NULL_TYPE is not a legit tag type, but RPM_MIN_TYPE is defined
and used as if it was. Change RPM_MIN_TYPE to 1 to make the MIN-MAX
range actually relevant, in particular for hdrchkType(). Also fix
the lone user who in query code who clearly had encountered this very
issue before but worked around locally...

Reported and initial patch by Demi Marie Obenour.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix RPM_MIN_TYPE definition, RPM_NULL_TYPE is not a legit tag type

-- File Changes --

    M lib/query.c (2)
    M lib/rpmtag.h (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1640.patch
https://github.com/rpm-software-management/rpm/pull/1640.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/1640
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210416/76898e4f/attachment.html>


More information about the Rpm-maint mailing list