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 14:02:21 +0000 (15:02 +0100)
commit370ac320301e28bb615cee80124c042649c95d14
tree555eef62f92241a4e6e1ba33919e67400a2bb1cf
parentdd90a91d8771fd1ad5083fd46a2b3da16a587757
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