Fix length checks in X509_cmp_time to avoid out-of-bounds reads.
authorEmilia Kasper <emilia@openssl.org>
Wed, 8 Apr 2015 14:56:43 +0000 (16:56 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 11 Jun 2015 13:52:39 +0000 (14:52 +0100)
commit9bc3665ac9e3c36f7762acd3691e1115d250b030
tree4409cdf950c99951cf13dc9a7c467985fc37f409
parentaa5ab40860deb3dc6d4d4c98a4efea99f7040a46
Fix length checks in X509_cmp_time to avoid out-of-bounds reads.

Also tighten X509_cmp_time to reject more than three fractional
seconds in the time; and to reject trailing garbage after the offset.

CVE-2015-1789

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/x509/x509_vfy.c