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: add missing null-checks in s2n_connection.c #4754

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

jouho
Copy link
Contributor

@jouho jouho commented Sep 5, 2024

Resolved issues:

Resolves #4752

Description of changes:

I initially planned to fix the missing null-check for s2n_connection_wipe_keys, but while reviewing the file, I found other functions missing null-checks, which could potentially lead to null-pointer errors.

I added null-checks to functions that didn't perform them. For cases where a function calls another function that already performs a null-check, I did not add additional checks.

Testing:

Unit tests passed. Will address CI failures if any.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Sep 5, 2024
@jouho jouho marked this pull request as ready for review September 5, 2024 21:29
@jouho jouho requested review from jmayclin and goatgoose September 5, 2024 21:30
@jouho jouho enabled auto-merge (squash) September 5, 2024 21:43
@jouho jouho merged commit 7ba4a2f into aws:main Sep 5, 2024
36 checks passed
@jouho jouho deleted the missing-null-check branch September 5, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing null check in s2n_connection_wipe_keys
3 participants