boringssl/crypto/x509
Steven Valdez b32a9151da Ensure we check i2d_X509 return val
The i2d_X509() function can return a negative value on error. Therefore
we should make sure we check it.

Issue reported by Yuan Jochen Kang.

(Imported from upstream's 8f43c80bfac15544820739bf035df946eeb603e8)

Change-Id: If247d5bf1d792eb7c6dc179b606ed21ea0ccdbb8
Reviewed-on: https://boringssl-review.googlesource.com/7743
Reviewed-by: David Benjamin <davidben@google.com>
2016-04-26 17:12:01 +00:00
..
a_digest.c
a_sign.c
a_strex.c
a_verify.c
algorithm.c Align with upstream's error strings, take two. 2016-03-15 16:02:12 +00:00
asn1_gen.c Fix build when using Visual Studio 2015 Update 1. 2016-03-25 21:39:52 +00:00
by_dir.c
by_file.c
charmap.h
CMakeLists.txt
i2d_pr.c
internal.h
pkcs7_test.c Fix build when using Visual Studio 2015 Update 1. 2016-03-25 21:39:52 +00:00
pkcs7.c
rsa_pss.c Align with upstream's error strings, take two. 2016-03-15 16:02:12 +00:00
t_crl.c
t_req.c
t_x509.c Don't shift serial number into sign bit 2016-03-17 18:23:49 +00:00
t_x509a.c
vpm_int.h
x509_att.c
x509_cmp.c
x509_d2.c
x509_def.c
x509_ext.c
x509_lu.c
x509_obj.c
x509_r2x.c
x509_req.c
x509_set.c
x509_test.cc Fix some malloc test failures. 2016-03-28 17:17:32 +00:00
x509_trs.c
x509_txt.c
x509_v3.c
x509_vfy.c Fix build when using Visual Studio 2015 Update 1. 2016-03-25 21:39:52 +00:00
x509_vpm.c
x509.c Align with upstream's error strings, take two. 2016-03-15 16:02:12 +00:00
x509cset.c
x509name.c
x509rset.c
x509spki.c
x509type.c
x_algor.c
x_all.c
x_attrib.c
x_crl.c
x_exten.c
x_info.c
x_name.c
x_pkey.c
x_pubkey.c Fix build when using Visual Studio 2015 Update 1. 2016-03-25 21:39:52 +00:00
x_req.c
x_sig.c
x_spki.c
x_val.c
x_x509.c Ensure we check i2d_X509 return val 2016-04-26 17:12:01 +00:00
x_x509a.c