Skip to content
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 NULL ptr dereference on EC_POINT *point #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

citypw
Copy link

@citypw citypw commented Sep 19, 2024

Use non-usual params of pkcs11 module will trigger a null ptr deref bug. Fix it for openssl#25493

Checklist
  • documentation is added or updated
  • tests are added or updated

@@ -74,6 +74,10 @@ size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
point_conversion_form_t form, unsigned char *buf,
size_t len, BN_CTX *ctx)
{
if ( point == NULL){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space between the ) and the { please.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Plz review again!

Use non-usual params of pkcs11 module will trigger a null ptr deref bug. Fix it for openssl#25493

CLA: trivial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants