]> git.ipfire.org Git - thirdparty/gnutls.git/commit
_decode_pkcs8_dsa_key: ensure that the P value is non-zero
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 19 Jan 2017 08:28:08 +0000 (09:28 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 19 Jan 2017 08:28:08 +0000 (09:28 +0100)
commitd2d11cdcea17becbff00a34334136279d3cfe4fb
tree32034c6eb329bf1fea3bb3d2c24314c885563b0d
parent765681dd78410d7bac098cde3d3adfbffdb6d927
_decode_pkcs8_dsa_key: ensure that the P value is non-zero

When decoding a DSA private key, and constructing the public key
ensure that P is non-zero, and thus can be used as modulus.

Issue found using oss-fuzz:
  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=393

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/x509/privkey_pkcs8.c