summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-09-16 23:24:41 +0000
committerjbj <devnull@localhost>2002-09-16 23:24:41 +0000
commitc1542ea2071d8c4086877587919eb7e4165c2b85 (patch)
tree4534f37ab2356eee29d8b1025caa86f5b0158470 /rpmio
parent40726dd94f8d149a56b9ccf0ddf1615a710ed0ae (diff)
downloadlibrpm-tizen-c1542ea2071d8c4086877587919eb7e4165c2b85.tar.gz
librpm-tizen-c1542ea2071d8c4086877587919eb7e4165c2b85.tar.bz2
librpm-tizen-c1542ea2071d8c4086877587919eb7e4165c2b85.zip
Another pgp parser fix.
CVS patchset: 5713 CVS date: 2002/09/16 23:24:41
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmpgp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
index 3f301c326..609d8dd53 100644
--- a/rpmio/rpmpgp.c
+++ b/rpmio/rpmpgp.c
@@ -625,6 +625,8 @@ fprintf(stderr, " unhash[%u] -- %s\n", plen, pgpHexStr(p, plen));
/*@=mods@*/
p += 2;
+ if (p > (h + hlen))
+ return 1;
rc = pgpPrtSigParams(tag, v->pubkey_algo, v->sigtype, p, h, hlen);
} break;