• E
    PKCS#7: avoid NULL pointer dereferences with missing content · c225c3cf
    Emilia Kasper 提交于
    In PKCS#7, the ASN.1 content component is optional.
    This typically applies to inner content (detached signatures),
    however we must also handle unexpected missing outer content
    correctly.
    
    This patch only addresses functions reachable from parsing,
    decryption and verification, and functions otherwise associated
    with reading potentially untrusted data.
    
    Correcting all low-level API calls requires further work.
    
    CVE-2015-0289
    
    Thanks to Michal Zalewski (Google) for reporting this issue.
    Reviewed-by: NSteve Henson <steve@openssl.org>
    c225c3cf
pk7_lib.c 18.3 KB