-
Notifications
You must be signed in to change notification settings - Fork 44
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
Avoid segmentation fault in __pkcs11h_crypto_mbedtls_certificate_is_issuer #68
Comments
Regarding of the response in the MBedTLS issue, |
Do you have some simple code to demonstrate the crash? |
@alonbl I also missed the notification. |
ko-maren
changed the title
Avoid sementation fault in __pkcs11h_crypto_mbedtls_certificate_is_issuer
Avoid segmentation fault in __pkcs11h_crypto_mbedtls_certificate_is_issuer
Oct 22, 2024
LGTM |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using pkcs11-helper v2.28.0 and mbedtls 3.6.0. There I'm observing a segmentation fault occurring in
__pkcs11h_crypto_mbedtls_certificate_is_issuer
. This segmentation fault comes from mbedtls (see Mbed-TLS/mbedtls#9570), however it could prevented in pkcs11-helper as well/additional.Instead of using the memset shortly before calling
mbedtls_x509_crt_parse
, the segmentation fault does not happened if definingx509_issuer
andx509_cert
at the beginning of the function.Possible fix in pkcs11-helper:
The text was updated successfully, but these errors were encountered: