-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix segfault in PKCS7 test #2025
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2025 +/- ##
==========================================
- Coverage 78.69% 78.67% -0.02%
==========================================
Files 598 598
Lines 103326 103320 -6
Branches 14687 14687
==========================================
- Hits 81310 81291 -19
- Misses 21366 21378 +12
- Partials 650 651 +1 ☔ View full report in Codecov by Sentry. |
@@ -1814,7 +1812,7 @@ TEST(PKCS7Test, TestEnveloped) { | |||
int decrypt_ok = | |||
PKCS7_decrypt(p7.get(), rsa_pkey.get(), /*certs*/ nullptr, bio.get(), | |||
/*flags*/ 0); | |||
EXPECT_LE(sizeof(decrypted), BIO_pending(bio.get())); | |||
EXPECT_LE(pt_len, BIO_pending(bio.get())); | |||
OPENSSL_cleanse(decrypted, sizeof(decrypted)); | |||
// There's a fun edge case here for block ciphers using conventional PKCS#7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// There's a fun edge case here for block ciphers using conventional PKCS#7 | |
// There's a fun edge case here for block ciphers using conventional PKCS#1 |
Description of changes:
Fix Segfault in PKCS7 test
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.