Skip to content

[SYCL] fix for std::locale::global interfering with allowlist check #18550

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

Draft
wants to merge 3 commits into
base: sycl
Choose a base branch
from

Conversation

cperkinsintel
Copy link
Contributor

std::locale::global() is a very common way for apps to initialize string localization for numeric and monetary values. Unfortunately, it is global.
In this very limited fix, we are preventing it from interfering with the allowlist check which uses std::stringstream. The insertion of commas into numbers for the locale support messes with the expected values.
We'll probably have to audit the other uses of std streams to see if they would be similarly vulnerable.

Signed-off-by: Chris Perkins <[email protected]>
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.

1 participant