Created
November 18, 2015 13:48
-
-
Save miminar/6b543135c8efc0b0ea74 to your computer and use it in GitHub Desktop.
Narrowing patch for witty package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: wt-3.3.5-rc2/src/web/base64.cpp | |
=================================================================== | |
--- wt-3.3.5-rc2.orig/src/web/base64.cpp | |
+++ wt-3.3.5-rc2/src/web/base64.cpp | |
@@ -18,24 +18,26 @@ namespace base64 | |
const char* to_table_end = | |
_to_table + sizeof(_to_table); | |
+ const char _o = (char)(-1); | |
+ | |
const char _from_table[128] = | |
{ | |
- -1, -1, -1, -1, -1, -1, -1, -1, // 0 | |
- -1, -1, -1, -1, -1, -1, -1, -1, // 8 | |
- -1, -1, -1, -1, -1, -1, -1, -1, // 16 | |
- -1, -1, -1, -1, -1, -1, -1, -1, // 24 | |
- -1, -1, -1, -1, -1, -1, -1, -1, // 32 | |
- -1, -1, -1, 62, -1, -1, -1, 63, // 40 | |
+ _o, _o, _o, _o, _o, _o, _o, _o, // 0 | |
+ _o, _o, _o, _o, _o, _o, _o, _o, // 8 | |
+ _o, _o, _o, _o, _o, _o, _o, _o, // 16 | |
+ _o, _o, _o, _o, _o, _o, _o, _o, // 24 | |
+ _o, _o, _o, _o, _o, _o, _o, _o, // 32 | |
+ _o, _o, _o, 62, _o, _o, _o, 63, // 40 | |
52, 53, 54, 55, 56, 57, 58, 59, // 48 | |
- 60, 61, -1, -1, -1, 0, -1, -1, // 56 | |
- -1, 0, 1, 2, 3, 4, 5, 6, // 64 | |
+ 60, 61, _o, _o, _o, 0, _o, _o, // 56 | |
+ _o, 0, 1, 2, 3, 4, 5, 6, // 64 | |
7, 8, 9, 10, 11, 12, 13, 14, // 72 | |
15, 16, 17, 18, 19, 20, 21, 22, // 80 | |
- 23, 24, 25, -1, -1, -1, -1, -1, // 88 | |
- -1, 26, 27, 28, 29, 30, 31, 32, // 96 | |
+ 23, 24, 25, _o, _o, _o, _o, _o, // 88 | |
+ _o, 26, 27, 28, 29, 30, 31, 32, // 96 | |
33, 34, 35, 36, 37, 38, 39, 40, // 104 | |
41, 42, 43, 44, 45, 46, 47, 48, // 112 | |
- 49, 50, 51, -1, -1, -1, -1, -1 // 120 | |
+ 49, 50, 51, _o, _o, _o, _o, _o // 120 | |
}; | |
const char* from_table = _from_table; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment