diff options
author | Pauli <paul.dale@oracle.com> | 2017-07-06 11:39:03 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-07-06 12:59:51 +1000 |
commit | 60eba30f60de55e3c782469fa555eede82606099 (patch) | |
tree | 682efcc6cc77d5759c2ffa2d61897ccb28ee5018 /crypto/asn1/x_bignum.c | |
parent | eee9552212ecc9e19bc09ea8a1b8428dc7394f45 (diff) | |
download | openssl-60eba30f60de55e3c782469fa555eede82606099.tar.gz |
Memory bounds checking in asn1 code.
Check that sprint, strcpy don't overflow.
Avoid some strlen operations when the previous sprintf return value can be used.
Also fix the undefined behaviour `*(long *)x = y` when x isn't a long or character pointer.
ISO/IEC 9899:1999 6.5/7 for the details.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3869)
Diffstat (limited to 'crypto/asn1/x_bignum.c')
0 files changed, 0 insertions, 0 deletions