In this pull request, I have included a script which I have used to auto generate more tests in test_suite_pkcs7.data.
For every asn1 tag it adds tests to modify the length of the content and the tag type. When parsing this modified PKCS7 data buffer, it is expected to fail.
In some cases, the PKCS7 parsing functions did not pick up on the malformed asn1 data. I addressed these issues in the last commit of this pull request.
Addresses issue #6745 .
In this pull request, I have included a script which I have used to auto generate more tests in
test_suite_pkcs7.data
. For every asn1 tag it adds tests to modify the length of the content and the tag type. When parsing this modified PKCS7 data buffer, it is expected to fail.In some cases, the PKCS7 parsing functions did not pick up on the malformed asn1 data. I addressed these issues in the last commit of this pull request.