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:10:48 +0000 (15:10 +0100)
commit57de3216e27c2e52bc3bc5bc7c94babdb7022179
tree616ffe6bfb333744b04558128d629b5735b40df6
parent857b2ced04be897488df311a257f254ad8516429
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