Skip to content

ech get length fix and x509 extension print temporary buffer size #8710

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JacobBarthelmeh
Copy link
Contributor

No description provided.

@JacobBarthelmeh JacobBarthelmeh requested a review from Copilot April 24, 2025 16:11
@JacobBarthelmeh JacobBarthelmeh self-assigned this Apr 24, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes two issues: one concerning the temporary buffer size used when printing X509 extensions and another adjusting the length calculations in the GetEchConfigsEx function.

  • In src/x509.c the temporary buffer size is increased by removing subtraction of indentation and a constant offset.
  • In src/ssl.c the logic for calculating the working output length and associated checks has been restructured.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/x509.c Changed allocation size in X509PrintExtensions to use MAX_WIDTH instead of MAX_WIDTH-4-indent.
src/ssl.c Refactored GetEchConfigsEx to initialize and adjust workingOutputLen based on whether output is provided.

@JacobBarthelmeh
Copy link
Contributor Author

JacobBarthelmeh commented Apr 29, 2025

Retest this Jenkins

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