Permalink
Browse files

Sanity check that there is at least one tag in header region

  • Loading branch information...
lkardos committed Nov 27, 2015
1 parent ddf9ec7 commit 8e847d52c811e9a57239e18672d40f781e0ec48e
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/package.c
View
@@ -269,6 +269,12 @@ rpmRC headerVerifyRegion(rpmTagVal regionTag,
int32_t ril = 0;
int32_t rdl = 0;
/* Check that we have at least on tag */
if (il < 1) {
rasprintf(buf, _("region: no tags"));
goto exit;
}
memset(entry, 0, sizeof(*entry));
/* Check (and convert) the 1st tag element. */

0 comments on commit 8e847d5

Please sign in to comment.