Fix infinite loop in CMS
authorDr. Stephen Henson <steve@openssl.org>
Fri, 5 Jun 2015 11:11:25 +0000 (12:11 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 11 Jun 2015 14:02:21 +0000 (15:02 +0100)
commitdd90a91d8771fd1ad5083fd46a2b3da16a587757
tree7bd12f6195a0edc30d89e13c109353a79d2ebaf9
parent176b59d157d1cbfd0b10f9f7be12eaf9896410f2
Fix infinite loop in CMS

Fix loop in do_free_upto if cmsbio is NULL: this will happen when attempting
to verify and a digest is not recognised. Reported by Johannes Bauer.

CVE-2015-1792

Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/cms/cms_smime.c