Check for potentially exploitable overflows in asn1_d2i_read_bio
authorDr. Stephen Henson <steve@openssl.org>
Thu, 19 Apr 2012 11:36:09 +0000 (11:36 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 19 Apr 2012 11:36:09 +0000 (11:36 +0000)
commit556e27b14f652fa39daa1148035e22b62525df15
tree48b7d7f9173deef46edd5d1d53e62ccc04e52972
parentaf0c009d70ff28f6e90cc37da4b2987d5cbbbadb
Check for potentially exploitable overflows in asn1_d2i_read_bio
BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
in CRYPTO_realloc_clean.

Thanks to Tavis Ormandy, Google Security Team, for discovering this
issue and to Adam Langley <agl@chromium.org> for fixing it. (CVE-2012-2110)
CHANGES
crypto/asn1/a_d2i_fp.c
crypto/buffer/buffer.c
crypto/mem.c