Skip to content

[ItaniumDemangle] reject A-F in FP literals #83061

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 1 commit into from
Feb 28, 2024

Conversation

rprichard
Copy link
Contributor

Sync this change to the copy of ItaniumDemangle.h in "llvm":

#82864

The Itanium C++ ABI specifies that FP literals are encoded using a lowercase hexadecimal string. Previously, libc++abi allowed uppercase A-F characters but decoded them by subtracting 'a' from them, producing negative digit values. It is especially confusing to accept an 'E' digit because 'E' marks the end of the FP literal.

@rprichard rprichard requested a review from MaskRay February 27, 2024 20:23
Sync this change to the copy of ItaniumDemangle.h in "llvm":

The Itanium C++ ABI specifies that FP literals are encoded using a
lowercase hexadecimal string. Previously, libc++abi allowed uppercase
A-F characters but decoded them by subtracting 'a' from them, producing
negative digit values. It is especially confusing to accept an 'E' digit
because 'E' marks the end of the FP literal.
@rprichard
Copy link
Contributor Author

It looks like the Flang :: Fir/memory-allocation-opt.fir Windows test is failing on other GitHub PRs, too, so it's unrelated to this change.

@rprichard rprichard merged commit 8eea478 into llvm:main Feb 28, 2024
@rprichard rprichard deleted the sync-demangler branch February 28, 2024 06:34
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