Fix the bad-data PKCS7 case.  Also fix a memory BIO issue on PyPy by copying the string input data before giving it to the BIO, and also explicitly keeping the data alive as long as the BIO stays alive.  This may still not be correct (on CPython or PyPy) because BIO_free ostensibly frees the data passed to it.
1 file changed