diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-12 12:44:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-12 12:44:34 +0000 |
commit | cf5d0e20f2ba5a71f9ca2ed78a1b24841c97bb06 (patch) | |
tree | d69557fbaa0db8999c9211b1b71b38563c22155d /icu/CVE-2011-4599.patch | |
parent | 37785dde4be04375e83a477a0f5670c6490f4f93 (diff) |
Resolves: CVE-2011-4599
Diffstat (limited to 'icu/CVE-2011-4599.patch')
-rw-r--r-- | icu/CVE-2011-4599.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/icu/CVE-2011-4599.patch b/icu/CVE-2011-4599.patch new file mode 100644 index 000000000000..fd8b12111c6b --- /dev/null +++ b/icu/CVE-2011-4599.patch @@ -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; + } + } |