| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Update bundled libexpat to 2.6.0 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,11 +11,13 @@ | |||
| 11 | 11 | Copyright (c) 2000-2005 Fred L. Drake, Jr. <fdrake@users.sourceforge.net> | |
| 12 | 12 | Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net> | |
| 13 | 13 | Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net> | |
| 14 | - Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org> | ||
| 14 | + Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org> | ||
| 15 | 15 | Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org> | |
| 16 | 16 | Copyright (c) 2016 Thomas Beutlich <tc@tbeu.de> | |
| 17 | 17 | Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk> | |
| 18 | 18 | Copyright (c) 2022 Thijs Schreijer <thijs@thijsschreijer.nl> | |
| 19 | + Copyright (c) 2023 Hanno Böck <hanno@gentoo.org> | ||
| 20 | + Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com> | ||
| 19 | 21 | Licensed under the MIT license: | |
| 20 | 22 | ||
| 21 | 23 | Permission is hereby granted, free of charge, to any person obtaining | |
@@ -269,7 +271,7 @@ XML_ParserCreate_MM(const XML_Char *encoding, | |||
| 269 | 271 | const XML_Memory_Handling_Suite *memsuite, | |
| 270 | 272 | const XML_Char *namespaceSeparator); | |
| 271 | 273 | ||
| 272 | - /* Prepare a parser object to be re-used. This is particularly | ||
| 274 | + /* Prepare a parser object to be reused. This is particularly | ||
| 273 | 275 | valuable when memory allocation overhead is disproportionately high, | |
| 274 | 276 | such as when a large number of small documnents need to be parsed. | |
| 275 | 277 | All handlers are cleared from the parser, except for the | |
@@ -951,7 +953,7 @@ XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser); | |||
| 951 | 953 | XMLPARSEAPI(int) | |
| 952 | 954 | XML_GetCurrentByteCount(XML_Parser parser); | |
| 953 | 955 | ||
| 954 | - /* If XML_CONTEXT_BYTES is defined, returns the input buffer, sets | ||
| 956 | + /* If XML_CONTEXT_BYTES is >=1, returns the input buffer, sets | ||
| 955 | 957 | the integer pointed to by offset to the offset within this buffer | |
| 956 | 958 | of the current parse position, and sets the integer pointed to by size | |
| 957 | 959 | to the size of this buffer (the number of input bytes). Otherwise | |
@@ -1025,7 +1027,9 @@ enum XML_FeatureEnum { | |||
| 1025 | 1027 | XML_FEATURE_ATTR_INFO, | |
| 1026 | 1028 | /* Added in Expat 2.4.0. */ | |
| 1027 | 1029 | XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT, | |
| 1028 | - XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT | ||
| 1030 | + XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT, | ||
| 1031 | + /* Added in Expat 2.6.0. */ | ||
| 1032 | + XML_FEATURE_GE | ||
| 1029 | 1033 | /* Additional features must be added to the end of this enum. */ | |
| 1030 | 1034 | }; | |
| 1031 | 1035 | ||
@@ -1038,23 +1042,29 @@ typedef struct { | |||
| 1038 | 1042 | XMLPARSEAPI(const XML_Feature *) | |
| 1039 | 1043 | XML_GetFeatureList(void); | |
| 1040 | 1044 | ||
| 1041 | - #ifdef XML_DTD | ||
| 1042 | - /* Added in Expat 2.4.0. */ | ||
| 1045 | + #if XML_GE == 1 | ||
| 1046 | + /* Added in Expat 2.4.0 for XML_DTD defined and | ||
| 1047 | + * added in Expat 2.6.0 for XML_GE == 1. */ | ||
| 1043 | 1048 | XMLPARSEAPI(XML_Bool) | |
| 1044 | 1049 | XML_SetBillionLaughsAttackProtectionMaximumAmplification( | |
| 1045 | 1050 | XML_Parser parser, float maximumAmplificationFactor); | |
| 1046 | 1051 | ||
| 1047 | - /* Added in Expat 2.4.0. */ | ||
| 1052 | + /* Added in Expat 2.4.0 for XML_DTD defined and | ||
| 1053 | + * added in Expat 2.6.0 for XML_GE == 1. */ | ||
| 1048 | 1054 | XMLPARSEAPI(XML_Bool) | |
| 1049 | 1055 | XML_SetBillionLaughsAttackProtectionActivationThreshold( | |
| 1050 | 1056 | XML_Parser parser, unsigned long long activationThresholdBytes); | |
| 1051 | 1057 | #endif | |
| 1052 | 1058 | ||
| 1059 | + /* Added in Expat 2.6.0. */ | ||
| 1060 | + XMLPARSEAPI(XML_Bool) | ||
| 1061 | + XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled); | ||
| 1062 | + | ||
| 1053 | 1063 | /* Expat follows the semantic versioning convention. | |
| 1054 | - See http://semver.org. | ||
| 1064 | + See https://semver.org | ||
| 1055 | 1065 | */ | |
| 1056 | 1066 | #define XML_MAJOR_VERSION 2 | |
| 1057 | - #define XML_MINOR_VERSION 5 | ||
| 1067 | + #define XML_MINOR_VERSION 6 | ||
| 1058 | 1068 | #define XML_MICRO_VERSION 0 | |
| 1059 | 1069 | ||
| 1060 | 1070 | #ifdef __cplusplus | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | 17 | #define XML_NS 1 | |
| 18 | 18 | #define XML_DTD 1 | |
| 19 | + #define XML_GE 1 | ||
| 19 | 20 | #define XML_CONTEXT_BYTES 1024 | |
| 20 | 21 | ||
| 21 | 22 | // bpo-30947: Python uses best available entropy sources to | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,9 +28,10 @@ | |||
| 28 | 28 | Copyright (c) 2002-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net> | |
| 29 | 29 | Copyright (c) 2002-2006 Karl Waclawek <karl@waclawek.net> | |
| 30 | 30 | Copyright (c) 2003 Greg Stein <gstein@users.sourceforge.net> | |
| 31 | - Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org> | ||
| 31 | + Copyright (c) 2016-2023 Sebastian Pipping <sebastian@pipping.org> | ||
| 32 | 32 | Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com> | |
| 33 | 33 | Copyright (c) 2019 David Loffredo <loffredo@steptools.com> | |
| 34 | + Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com> | ||
| 34 | 35 | Licensed under the MIT license: | |
| 35 | 36 | ||
| 36 | 37 | Permission is hereby granted, free of charge, to any person obtaining | |
@@ -154,12 +155,15 @@ extern "C" { | |||
| 154 | 155 | void _INTERNAL_trim_to_complete_utf8_characters(const char *from, | |
| 155 | 156 | const char **fromLimRef); | |
| 156 | 157 | ||
| 157 | - #if defined(XML_DTD) | ||
| 158 | + #if XML_GE == 1 | ||
| 158 | 159 | unsigned long long testingAccountingGetCountBytesDirect(XML_Parser parser); | |
| 159 | 160 | unsigned long long testingAccountingGetCountBytesIndirect(XML_Parser parser); | |
| 160 | 161 | const char *unsignedCharToPrintable(unsigned char c); | |
| 161 | 162 | #endif | |
| 162 | 163 | ||
| 164 | + extern XML_Bool g_reparseDeferralEnabledDefault; // written ONLY in runtests.c | ||
| 165 | + extern unsigned int g_parseAttempts; // used for testing only | ||
| 166 | + | ||
| 163 | 167 | #ifdef __cplusplus | |
| 164 | 168 | } | |
| 165 | 169 | #endif | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ | |||
| 106 | 106 | * if this code is included and compiled as C++; related GCC warning is: | |
| 107 | 107 | * warning: use of C++11 long long integer constant [-Wlong-long] | |
| 108 | 108 | */ | |
| 109 | - #define _SIP_ULL(high, low) ((((uint64_t)high) << 32) | (low)) | ||
| 109 | + #define SIP_ULL(high, low) ((((uint64_t)high) << 32) | (low)) | ||
| 110 | 110 | ||
| 111 | 111 | #define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) | |
| 112 | 112 | ||
@@ -190,10 +190,10 @@ sip_round(struct siphash *H, const int rounds) { | |||
| 190 | 190 | ||
| 191 | 191 | static struct siphash * | |
| 192 | 192 | sip24_init(struct siphash *H, const struct sipkey *key) { | |
| 193 | - H->v0 = _SIP_ULL(0x736f6d65U, 0x70736575U) ^ key->k[0]; | ||
| 194 | - H->v1 = _SIP_ULL(0x646f7261U, 0x6e646f6dU) ^ key->k[1]; | ||
| 195 | - H->v2 = _SIP_ULL(0x6c796765U, 0x6e657261U) ^ key->k[0]; | ||
| 196 | - H->v3 = _SIP_ULL(0x74656462U, 0x79746573U) ^ key->k[1]; | ||
| 193 | + H->v0 = SIP_ULL(0x736f6d65U, 0x70736575U) ^ key->k[0]; | ||
| 194 | + H->v1 = SIP_ULL(0x646f7261U, 0x6e646f6dU) ^ key->k[1]; | ||
| 195 | + H->v2 = SIP_ULL(0x6c796765U, 0x6e657261U) ^ key->k[0]; | ||
| 196 | + H->v3 = SIP_ULL(0x74656462U, 0x79746573U) ^ key->k[1]; | ||
| 197 | 197 | ||
| 198 | 198 | H->p = H->buf; | |
| 199 | 199 | H->c = 0; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,8 @@ | |||
| 9 | 9 | Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net> | |
| 10 | 10 | Copyright (c) 2002 Greg Stein <gstein@users.sourceforge.net> | |
| 11 | 11 | Copyright (c) 2005 Karl Waclawek <karl@waclawek.net> | |
| 12 | - Copyright (c) 2017-2021 Sebastian Pipping <sebastian@pipping.org> | ||
| 12 | + Copyright (c) 2017-2023 Sebastian Pipping <sebastian@pipping.org> | ||
| 13 | + Copyright (c) 2023 Orgad Shaneh <orgad.shaneh@audiocodes.com> | ||
| 13 | 14 | Licensed under the MIT license: | |
| 14 | 15 | ||
| 15 | 16 | Permission is hereby granted, free of charge, to any person obtaining | |
@@ -35,7 +36,9 @@ | |||
| 35 | 36 | #ifndef WINCONFIG_H | |
| 36 | 37 | #define WINCONFIG_H | |
| 37 | 38 | ||
| 38 | - #define WIN32_LEAN_AND_MEAN | ||
| 39 | + #ifndef WIN32_LEAN_AND_MEAN | ||
| 40 | + # define WIN32_LEAN_AND_MEAN | ||
| 41 | + #endif | ||
| 39 | 42 | #include <windows.h> | |
| 40 | 43 | #undef WIN32_LEAN_AND_MEAN | |
| 41 | 44 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments