Add checks to X509_NAME_oneline()
authorDr. Stephen Henson <steve@openssl.org>
Thu, 28 Apr 2016 18:45:44 +0000 (19:45 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 29 Apr 2016 18:50:49 +0000 (19:50 +0100)
commit9b08619cb45e75541809b1154c90e1a00450e537
treebc68495d8f4d5bae1cd8d9e5668b6886785dedff
parent66e731ab09f2c652d0e179df3df10d069b407604
Add checks to X509_NAME_oneline()

Sanity check field lengths and sums to avoid potential overflows and reject
excessively large X509_NAME structures.

Issue reported by Guido Vranken.

Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 77076dc944f76e821e4eae3a6563b853ce00c0ed)

Conflicts:
crypto/x509/x509_err.c
crypto/x509/x509_obj.c
crypto/x509/x509.h
crypto/x509/x509_err.c
crypto/x509/x509_obj.c