summaryrefslogtreecommitdiff
path: root/external/libexttextcat/ubsan.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/libexttextcat/ubsan.patch')
-rw-r--r--external/libexttextcat/ubsan.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/external/libexttextcat/ubsan.patch b/external/libexttextcat/ubsan.patch
deleted file mode 100644
index 767a9a003619..000000000000
--- a/external/libexttextcat/ubsan.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- src/fingerprint.c
-+++ src/fingerprint.c
-@@ -128,7 +128,7 @@
- */
- static uint4 simplehash(const char *p, int len)
- {
-- sint4 h = len * 13;
-+ uint4 h = len * 13;
- while (*p)
- {
- h = (h << 5) - h + *p++;
---- src/utf8misc.c
-+++ src/utf8misc.c
-@@ -61,7 +61,7 @@
- * if the first bit of the current char is 1 then *str is an escape
- * character
- */
-- char escape_char = ((*str & WEIGHT_MASK) << 1);
-+ unsigned char escape_char = ((*str & WEIGHT_MASK) << 1);
-
- /*
- * and we use it to count (by bit translation) following characters
-@@ -99,7 +99,7 @@
- * then str[pointer] is an escape character and we use it to count
- * following characters (only the weightest part)
- */
-- char escape_char = ((str[pointer] & WEIGHT_MASK) << 1);
-+ unsigned char escape_char = ((str[pointer] & WEIGHT_MASK) << 1);
-
- /*
- * every step, we move the byte of 1 bit left, when first bit is 0,
-@@ -138,7 +138,7 @@
- * (only the weightest part)
- */
-
-- char escape_char = ((key[pointer] & WEIGHT_MASK) << 1);
-+ unsigned char escape_char = ((key[pointer] & WEIGHT_MASK) << 1);
-
- while (escape_char & ESCAPE_MASK && key[pointer] == lex[pointer])
- {