diff options
author | Eike Rathke <erack@redhat.com> | 2013-03-07 00:42:48 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-07 00:46:25 +0100 |
commit | 94147f6ea2de2ace33fc3212f16ee441385cb373 (patch) | |
tree | 90e63828f956d2ce03d58eadcc42c9ff55c65481 /icu/icu4c-CVE-2013-0900_umutex.patch | |
parent | 303ff2493ba479d4b52874b8e5afa4491d9cec11 (diff) |
resolved rhbz#918168 ICU: CVE-2013-0900 race condition allows DoS
Upstream changes
https://ssl.icu-project.org/trac/changeset/32865
https://ssl.icu-project.org/trac/changeset/32908
See also
https://bugzilla.redhat.com/show_bug.cgi?id=918167
Plus changed UMutex to UMTX to make these compile in icu49.
Change-Id: Ib5dba7085e6b2dd3925c0c220b5d264e4c7bb4c8
Diffstat (limited to 'icu/icu4c-CVE-2013-0900_umutex.patch')
-rw-r--r-- | icu/icu4c-CVE-2013-0900_umutex.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/icu/icu4c-CVE-2013-0900_umutex.patch b/icu/icu4c-CVE-2013-0900_umutex.patch new file mode 100644 index 000000000000..e195c5cade2f --- /dev/null +++ b/icu/icu4c-CVE-2013-0900_umutex.patch @@ -0,0 +1,12 @@ +diff -ruN icu.orig/source/common/locid.cpp icu/source/common/locid.cpp +--- build/icu.orig/source/common/locid.cpp 2013-03-06 21:27:35.170696967 +0100 ++++ build/icu/source/common/locid.cpp 2013-03-06 21:29:47.711378977 +0100 +@@ -53,7 +53,7 @@ + static Locale *gLocaleCache = NULL; + + // gDefaultLocaleMutex protects all access to gDefaultLocalesHashT and gDefaultLocale. +-static UMutex gDefaultLocaleMutex = U_MUTEX_INITIALIZER; ++static UMTX gDefaultLocaleMutex = NULL; + static UHashtable *gDefaultLocalesHashT = NULL; + static Locale *gDefaultLocale = NULL; + |