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

[MAINT] Fixed wrong null-safety condition check in haicrypt #2616

Merged

Conversation

ethouris
Copy link
Collaborator

Fixes #2376

IMPORTANT: Since this version C99 is the minimum standard required for compiling haicrypt.

@ethouris ethouris added this to the v1.5.2 milestone Jan 17, 2023
@ethouris ethouris added Type: Maintenance Work required to maintain or clean up the code [core] Area: Changes in SRT library core labels Jan 17, 2023
@maxsharabayko
Copy link
Collaborator

IMPORTANT: Since this version C99 is the minimum standard required for compiling haicrypt.

Given SRT is C++, using C99 should not be a problem for the project itself. And I guess the library is no longer used alone.

@jeandube Please approve the changes.

haicrypt/hcrypt_tx.c Show resolved Hide resolved
haicrypt/hcrypt_tx.c Show resolved Hide resolved
haicrypt/hcrypt_tx.c Show resolved Hide resolved
haicrypt/hcrypt_tx.c Show resolved Hide resolved
haicrypt/hcrypt_tx.c Outdated Show resolved Hide resolved
haicrypt/hcrypt_tx.c Outdated Show resolved Hide resolved
@@ -149,11 +144,6 @@ int HaiCrypt_Tx_Process(HaiCrypt_Handle hhc,
/* Manage Key Material (refresh, announce, decommission) */
hcryptCtx_Tx_ManageKM(crypto);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jeandube : Note that I'm taking it as a good deal that the call to hcryptCtx_Tx_ManageKM doesn't modify the assignment of crypto->ctx; as far as I could check it, it shouldn't.

@maxsharabayko
Copy link
Collaborator

Looks good to me.
@jeandube do you approve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Either the condition 'NULL==crypto' is redundant or there is possible null pointer dereference: crypto.
3 participants