diff options
Diffstat (limited to 'common/openpgp-oid.c')
-rw-r--r-- | common/openpgp-oid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c index 010c23f60..d3d1f2aa7 100644 --- a/common/openpgp-oid.c +++ b/common/openpgp-oid.c @@ -236,6 +236,8 @@ openpgp_oid_to_str (gcry_mpi_t a) val <<= 7; val |= buf[n] & 0x7f; } + if (val < 80) + goto badoid; val -= 80; sprintf (p, "2.%lu", val); p += strlen (p); |