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

Backport 2.1: Strip trailing whitespace for AMD64 assembly in bn_mul.h #2065

Merged
merged 2 commits into from
Dec 7, 2018

Conversation

redtangent
Copy link
Contributor

Description

This is a backport of #2039 to mbedtls-2.1.

Remove the trailing whitespace from the inline assembly for AMD64 target, to remove a warning in Clang, which was objecting to the string literal generated by the inline assembly being greater than 4096 characters specified by the ISO C99 standard. (-Woverlength-strings)

This is a cosmetic change and doesn't change the logic of the code in any way.

This change only fixes the problem for AMD64 target, and leaves other targets as they are.

Fixes #482.

Status

READY

Requires Backporting

n/a

Migrations

NO

Todos

  • Tests
  • Documentation
  • Changelog updated
  • Backported

Remove the trailing whitespace from the inline assembly for AMD64 target, to
overcome a warning in Clang, which was objecting to the string literal
generated by the inline assembly being greater than 4096 characters specified
by the ISO C99 standard. (-Woverlength-strings)

This is a cosmetic change and doesn't change the logic of the code in any way.

This change only fixes the problem for AMD64 target, and leaves other targets as
they are.

Fixes Mbed-TLS#482.
@simonbutcher simonbutcher added bug CLA not applicable needs-review Every commit must be reviewed by at least two team members, component-crypto Crypto primitives and low-level interfaces labels Oct 8, 2018
Copy link
Contributor

@yanesca yanesca left a comment

Choose a reason for hiding this comment

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

Found a minor style issue, but other than that this is a faithful backport of the original.

ChangeLog Outdated Show resolved Hide resolved
Add Changelog entry for inline assembly/literal strings too long issue with
Clang.
@redtangent redtangent force-pushed the clang-long-string-fix-2.1 branch from 3e3fa11 to 4c1db16 Compare October 9, 2018 19:28
@Patater Patater merged commit 4c1db16 into Mbed-TLS:mbedtls-2.1 Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-crypto Crypto primitives and low-level interfaces needs-review Every commit must be reviewed by at least two team members,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants