Test for filename triplet sanity in rpmfiNew()
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 28 Jan 2012 15:53:11 +0000 (17:53 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 28 Jan 2012 16:11:49 +0000 (18:11 +0200)
commit502d07cf24fda57fdf0998a220b1a1176dadd985
tree3d42c6c346dae237ab05a97d7a33d8b68b792791
parent57b6b175adf4c6fd4737c72142b6d8d220a17622
Test for filename triplet sanity in rpmfiNew()

- Basename and dirindex counts must be equal, dirnames count must be
  larger than zero and no larger than number of basenames. Check
  that directory indexes are within range.
- There are mountains of further checks to be added here (and elsewhere)
  but we gotta start somewhere... and filename triplets are one of the more
  critical elements we got.
lib/rpmfi.c