Skip to content

Comments

crypto/bio: drop float formating for UEFI#17547

Closed
kraxel wants to merge 2 commits intoopenssl:masterfrom
kraxel:efi-no-float
Closed

crypto/bio: drop float formating for UEFI#17547
kraxel wants to merge 2 commits intoopenssl:masterfrom
kraxel:efi-no-float

Conversation

@kraxel
Copy link
Contributor

@kraxel kraxel commented Jan 19, 2022

No description provided.

This reverts commit 328bf5a.

Turned out it isn't that simple, the fix is incomplete.
So revert and try again with another approach.

Signed-off-by: Gerd Hoffmann <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

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

Why the uppercase? I'd prefer erroring out with return 0 instead of assert.

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have asserts in the library. An error return here is appropriate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why the uppercase? I'd prefer erroring out with return 0 instead of assert.

The other branch handles uppercase too.

@t8m t8m added branch: 3.0 Applies to openssl-3.0 branch branch: master Applies to master branch triaged: bug The issue/pr is/fixes a bug labels Jan 19, 2022
@kraxel
Copy link
Contributor Author

kraxel commented Jan 19, 2022

The test failure looks like some temporary network issue, is there some way to re-run that test?

@t8m t8m added the approval: review pending This pull request needs review by a committer label Jan 19, 2022
Copy link
Contributor

@paulidale paulidale left a comment

Choose a reason for hiding this comment

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

Approved with the line deleted.

@paulidale paulidale added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jan 20, 2022
Using floating point is not supported in UEFI and can cause build
problems, for example due to SSE being disabled and x64 calling
convention passing floats in SSE registers.

Avoid those problems by not compiling the formating code for floating
point numbers.

Signed-off-by: Gerd Hoffmann <[email protected]>
@t8m t8m added approval: done This pull request has the required number of approvals and removed approval: done This pull request has the required number of approvals labels Jan 20, 2022
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Jan 21, 2022
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

openssl-machine pushed a commit that referenced this pull request Jan 21, 2022
This reverts commit 328bf5a.

Turned out it isn't that simple, the fix is incomplete.
So revert and try again with another approach.

Signed-off-by: Gerd Hoffmann <[email protected]>

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #17547)
openssl-machine pushed a commit that referenced this pull request Jan 21, 2022
Using floating point is not supported in UEFI and can cause build
problems, for example due to SSE being disabled and x64 calling
convention passing floats in SSE registers.

Avoid those problems by not compiling the formating code for floating
point numbers.

Signed-off-by: Gerd Hoffmann <[email protected]>

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #17547)
openssl-machine pushed a commit that referenced this pull request Jan 21, 2022
This reverts commit 328bf5a.

Turned out it isn't that simple, the fix is incomplete.
So revert and try again with another approach.

Signed-off-by: Gerd Hoffmann <[email protected]>

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #17547)

(cherry picked from commit 619c9ba)
openssl-machine pushed a commit that referenced this pull request Jan 21, 2022
Using floating point is not supported in UEFI and can cause build
problems, for example due to SSE being disabled and x64 calling
convention passing floats in SSE registers.

Avoid those problems by not compiling the formating code for floating
point numbers.

Signed-off-by: Gerd Hoffmann <[email protected]>

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #17547)

(cherry picked from commit f59d72f)
@t8m
Copy link
Member

t8m commented Jan 21, 2022

Merged to master and 3.0 branches. Thank you for your contribution.

@t8m t8m closed this Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch branch: 3.0 Applies to openssl-3.0 branch triaged: bug The issue/pr is/fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants