From 901091f47a661571a7fb935bd5ccec34e37ad688 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 6 Jan 2015 17:44:19 +0100 Subject: external/icu: Work around -fsanitize=signed-integer-overflow Change-Id: Iec76486aa8a0eef7e1a5c74b416d466f16ff979a --- external/icu/icu-ubsan.patch.0 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'external') 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(other), fLoc(other.fLoc) { } + virtual ~LocaleCacheKey() { } + virtual int32_t hashCode() const { +- return 37 *CacheKey::hashCode() + fLoc.hashCode(); ++ return 37U *CacheKey::hashCode() + fLoc.hashCode(); + } + virtual UBool operator == (const CacheKeyBase &other) const { + // reflexive --- source/common/uresbund.cpp +++ source/common/uresbund.cpp @@ -53,7 +53,7 @@ -- cgit