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

ICU-20034 Locale assignment operator should set the locale to bogus if OOM occurs. #14

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

jefgen
Copy link
Member

@jefgen jefgen commented Jul 19, 2018

The Locale class assignment operator should set the locale to "bogus" if an out-of-memory (OOM) error occurs when attempting to copy data over from the other locale.

…to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
axelandrejs
axelandrejs previously approved these changes Jul 19, 2018
Copy link

@axelandrejs axelandrejs left a comment

Choose a reason for hiding this comment

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

LGTM

srl295
srl295 previously approved these changes Jul 19, 2018
@jefgen jefgen changed the title ICU-20034 The Locale class assignment operator should set the locale … ICU-20034 Locale assignment operator should set the locale to bogus if OOM occurs. Jul 20, 2018
@jefgen jefgen dismissed stale reviews from srl295 and axelandrejs via efe6e0b July 21, 2018 00:11
Copy link
Member

@yumaoka yumaoka left a comment

Choose a reason for hiding this comment

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

LGTM.

@jefgen jefgen merged commit f931a3c into unicode-org:master Aug 2, 2018
@jefgen jefgen deleted the jefgen/20034 branch August 2, 2018 06:11
sffc referenced this pull request in sffc/icu Sep 26, 2018
…ogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
sffc referenced this pull request in sffc/icu Sep 26, 2018
…ogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
sffc referenced this pull request in sffc/icu Sep 27, 2018
…ogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
sffc referenced this pull request in sffc/icu Sep 27, 2018
…ogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
sffc referenced this pull request in sffc/icu Sep 27, 2018
…ogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
sffc referenced this pull request in sffc/icu Sep 27, 2018
…ogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
younies referenced this pull request in younies/icu Feb 18, 2020
Some sample unitPreferences data for discussing output format.
hugovdm added a commit to hugovdm/icu that referenced this pull request Mar 25, 2020
GerHobbelt pushed a commit to GerHobbelt/icu that referenced this pull request Mar 11, 2024
…code-org#14)

Reverts 1b671c9 changes to umapfile.cpp because it begins using CreateFileW and MapViewOfFile. 

This commit causes a link error with UWP Debug builds only,  due to duplicate symbols in SKIA, which also has an ICU build, and utilises these windows functions. Be sure to resolve this before moving forward.
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.

4 participants