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

ci: grep for S2N_RESULT_ERR without setting s2n_errno #4534

Merged
merged 2 commits into from
May 3, 2024

Conversation

lrstewart
Copy link
Contributor

Resolved issues:

resolves #4513 (comment)

Description of changes:

Our existing grep checks for posix return types, but not S2N_RESULT return types. So it misses return S2N_RESULT_ERROR mistakes.

Testing:

The updated script found a couple existing mistakes, which I fixed. The only actual problem was s2n_async_get_actions. The other instances didn't set s2n_errno, but relied on a previous call having just failed and kept the error code from that failure. RESULT_GUARD does the same thing.

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 May 2, 2024
@lrstewart lrstewart marked this pull request as ready for review May 2, 2024 19:13
@lrstewart lrstewart requested a review from dougch as a code owner May 2, 2024 19:13
@lrstewart lrstewart requested review from jouho and maddeleine May 2, 2024 19:14
@lrstewart lrstewart enabled auto-merge (squash) May 2, 2024 19:47
@lrstewart lrstewart merged commit 3d125a5 into aws:main May 3, 2024
33 checks passed
@lrstewart lrstewart deleted the grep branch May 3, 2024 00:04
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.

4 participants