summaryrefslogtreecommitdiff
path: root/external/icu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-06 17:44:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-06 17:45:27 +0100
commit901091f47a661571a7fb935bd5ccec34e37ad688 (patch)
tree175fb879ad701ec463a3f6e946b478cda812ea04 /external/icu
parent0bea1d80d10a1e3e9bebf958d622ff2fb480e886 (diff)
external/icu: Work around -fsanitize=signed-integer-overflow
Change-Id: Iec76486aa8a0eef7e1a5c74b416d466f16ff979a
Diffstat (limited to 'external/icu')
-rw-r--r--external/icu/icu-ubsan.patch.011
1 files changed, 11 insertions, 0 deletions
diff --git a/external/icu/icu-ubsan.patch.0 b/external/icu/icu-ubsan.patch.0
index c6baaede4b4e..c1d229c0059f 100644
--- a/external/icu/icu-ubsan.patch.0
+++ b/external/icu/icu-ubsan.patch.0
@@ -127,6 +127,17 @@
length(len), next(subNode) {}
virtual UBool operator==(const Node &other) const;
virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
+--- source/common/unifiedcache.h
++++ source/common/unifiedcache.h
+@@ -139,7 +139,7 @@
+ : CacheKey<T>(other), fLoc(other.fLoc) { }
+ virtual ~LocaleCacheKey() { }
+ virtual int32_t hashCode() const {
+- return 37 *CacheKey<T>::hashCode() + fLoc.hashCode();
++ return 37U *CacheKey<T>::hashCode() + fLoc.hashCode();
+ }
+ virtual UBool operator == (const CacheKeyBase &other) const {
+ // reflexive
--- source/common/uresbund.cpp
+++ source/common/uresbund.cpp
@@ -53,7 +53,7 @@