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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to