Resolves: CVE-2011-4599
This commit is contained in:
20
icu/CVE-2011-4599.patch
Normal file
20
icu/CVE-2011-4599.patch
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
--- misc/icu/source/source/common/uloc.c
|
||||||
|
+++ misc/build/icu/source/common/uloc.c
|
||||||
|
@@ -1797,7 +1797,7 @@
|
||||||
|
int32_t variantLen = _deleteVariant(variant, uprv_min(variantSize, (nameCapacity-len)), variantToCompare, n);
|
||||||
|
len -= variantLen;
|
||||||
|
if (variantLen > 0) {
|
||||||
|
- if (name[len-1] == '_') { /* delete trailing '_' */
|
||||||
|
+ if (len > 0 && name[len-1] == '_') { /* delete trailing '_' */
|
||||||
|
--len;
|
||||||
|
}
|
||||||
|
addKeyword = VARIANT_MAP[j].keyword;
|
||||||
|
@@ -1805,7 +1805,7 @@
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- if (name[len-1] == '_') { /* delete trailing '_' */
|
||||||
|
+ if (len > 0 && len <= nameCapacity && name[len-1] == '_') { /* delete trailing '_' */
|
||||||
|
--len;
|
||||||
|
}
|
||||||
|
}
|
@@ -52,7 +52,8 @@ PATCH_FILES=\
|
|||||||
icu4c-4_4_2-wchar_t.patch \
|
icu4c-4_4_2-wchar_t.patch \
|
||||||
icu4c-warnings.patch \
|
icu4c-warnings.patch \
|
||||||
icu4c-escapespace.patch \
|
icu4c-escapespace.patch \
|
||||||
icu4c-strict-c.patch
|
icu4c-strict-c.patch \
|
||||||
|
CVE-2011-4599.patch
|
||||||
|
|
||||||
.IF "$(OS)"=="ANDROID"
|
.IF "$(OS)"=="ANDROID"
|
||||||
PATCH_FILES+=\
|
PATCH_FILES+=\
|
||||||
|
Reference in New Issue
Block a user