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

small formal changes from NCBI (January 2023) #6930

Closed
wants to merge 2 commits into from

Conversation

ucko
Copy link
Contributor

@ucko ucko commented Jan 13, 2023

Description

I have been using lightly patched Mbed TLS LTS sources and headers in a product and would like to get my changes upstream, both so I can stop carrying patches and because they may be of broader interest. I will propose backports to the LTS branch in due course, but am starting with the development branch per SOP. My changes are mutually independent, but small; please let me know if I should formally split them into individual PRs. Also, I'm not sure either merits mention in the ChangeLog, but will be happy to propose text if you feel otherwise.

FWIW, my original patch to platform.h focused exclusively on (v)snprintf, but I figured I might as well generalize it.

Thanks in advance for considering these changes, and please let me know if you have any questions or concerns.

Gatekeeper checklist

  • changelog provided, or not required
  • backport done, or not required
  • tests provided, or not required

Notes for the submitter

Please refer to the contributing guidelines, especially the
checklist for PR contributors.

Some identifiers (e.g. mbedtls_free) can name either functions or
macros depending on configuration settings.  For those that turn out
to name macros, first clear out any existing macro definitions to
accommodate possible unconditional bulk symbol renaming.

Signed-off-by: Aaron M. Ucko <[email protected]>
At least in the context of ecp_double_jac, the output pointer may
equal the first input pointer, in which case copying is not only
superfluous but results in "Source and destination overlap in memcpy"
errors from Valgrind.

Signed-off-by: Aaron M. Ucko <[email protected]>
@paul-elliott-arm
Copy link
Member

Hi,

Given the two commits are on quite different subjects, I am going to suggest it might be a good idea to split these two. It would certainly make review easier.

@ucko
Copy link
Contributor Author

ucko commented Jan 16, 2023 via email

@gilles-peskine-arm
Copy link
Contributor

The bignum change is desirable. It needs a changelog entry referencing #6701.

The platform.h change has me puzzled. If it's making the build pass, isn't it hiding a genuine error?

@ucko
Copy link
Contributor Author

ucko commented Jan 16, 2023 via email

@ucko
Copy link
Contributor Author

ucko commented Jan 17, 2023

Superseded by #6942 and #6943.

@ucko ucko closed this Jan 17, 2023
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.

3 participants