Skip to content

Remove extra va_end in err_add_error_vdata #2364

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

Merged
merged 2 commits into from
May 9, 2025

Conversation

justsmth
Copy link
Contributor

We should va_end(args_copy), but the function should not va_end(args). The caller is responsible for that one.

As I understand it, this in benign: in every target we care about, va_end is a no-op.

Bug: 379096238
Change-Id: I063c775ecd496edc1b5c69c027d1dd9a04f578d1
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/74088
Auto-Submit: David Benjamin davidben@google.com
Reviewed-by: Adam Langley agl@google.com
Commit-Queue: Adam Langley agl@google.com

Issues:

Resolves #ISSUE-NUMBER1
Addresses #ISSUE-NUMBER2

Description of changes:

Describe AWS-LC’s current behavior and how your code changes that behavior. If there are no issues this pr is resolving, explain why this change is necessary.

Call-outs:

Point out areas that need special attention or support during the review process. Discuss architecture or design changes.

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?

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

We should va_end(args_copy), but the function should not va_end(args).
The caller is responsible for that one.

As I understand it, this in benign: in every target we care about,
va_end is a no-op.

Bug: 379096238
Change-Id: I063c775ecd496edc1b5c69c027d1dd9a04f578d1
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/74088
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.80%. Comparing base (7c6ad87) to head (50e7749).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2364      +/-   ##
==========================================
- Coverage   78.81%   78.80%   -0.02%     
==========================================
  Files         621      621              
  Lines      108418   108417       -1     
  Branches    15399    15398       -1     
==========================================
- Hits        85455    85442      -13     
- Misses      22293    22305      +12     
  Partials      670      670              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@justsmth justsmth requested review from skmcgrail and andrewhop April 25, 2025 19:47
@justsmth justsmth marked this pull request as ready for review April 28, 2025 17:18
@justsmth justsmth requested a review from a team as a code owner April 28, 2025 17:18
@justsmth justsmth changed the title [DRAFT] Remove extra va_end in err_add_error_vdata Remove extra va_end in err_add_error_vdata Apr 28, 2025
@justsmth justsmth merged commit ec07691 into aws:main May 9, 2025
112 of 114 checks passed
@justsmth justsmth deleted the err_add_error_vdata branch May 9, 2025 17:49
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.

5 participants