summaryrefslogtreecommitdiffstats
path: root/icu/icu4c-CVE-2013-0900_umutex.patch
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-03-07 00:42:48 +0100
committerEike Rathke <erack@redhat.com>2013-03-07 00:46:25 +0100
commit94147f6ea2de2ace33fc3212f16ee441385cb373 (patch)
tree90e63828f956d2ce03d58eadcc42c9ff55c65481 /icu/icu4c-CVE-2013-0900_umutex.patch
parentWindow::PostPaint() was unused and empty (diff)
downloadcore-94147f6ea2de2ace33fc3212f16ee441385cb373.tar.gz
core-94147f6ea2de2ace33fc3212f16ee441385cb373.zip
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.patch12
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;
+