| 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.7.1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1068,7 +1068,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled); | |||
| 1068 | 1068 | */ | |
| 1069 | 1069 | #define XML_MAJOR_VERSION 2 | |
| 1070 | 1070 | #define XML_MINOR_VERSION 7 | |
| 1071 | - #define XML_MICRO_VERSION 0 | ||
| 1071 | + #define XML_MICRO_VERSION 1 | ||
| 1072 | 1072 | ||
| 1073 | 1073 | #ifdef __cplusplus | |
| 1074 | 1074 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ | |||
| 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-2024 Sebastian Pipping <sebastian@pipping.org> | ||
| 31 | + Copyright (c) 2016-2025 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 | 34 | Copyright (c) 2023-2024 Sony Corporation / Snild Dolkow <snild@sony.com> | |
@@ -127,6 +127,9 @@ | |||
| 127 | 127 | # elif ULONG_MAX == 18446744073709551615u // 2^64-1 | |
| 128 | 128 | # define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "ld" | |
| 129 | 129 | # define EXPAT_FMT_SIZE_T(midpart) "%" midpart "lu" | |
| 130 | + # elif defined(EMSCRIPTEN) // 32bit mode Emscripten | ||
| 131 | + # define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "ld" | ||
| 132 | + # define EXPAT_FMT_SIZE_T(midpart) "%" midpart "zu" | ||
| 130 | 133 | # else | |
| 131 | 134 | # define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "d" | |
| 132 | 135 | # define EXPAT_FMT_SIZE_T(midpart) "%" midpart "u" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,9 +12,9 @@ fi | |||
| 12 | 12 | ||
| 13 | 13 | # Update this when updating to a new version after verifying that the changes | |
| 14 | 14 | # the update brings in are good. These values are used for verifying the SBOM, too. | |
| 15 | - expected_libexpat_tag="R_2_7_0" | ||
| 16 | - expected_libexpat_version="2.7.0" | ||
| 17 | - expected_libexpat_sha256="362e89ca6b8a0d46fc5740a917eb2a8b4d6356edbe016eee09f49c0781215844" | ||
| 15 | + expected_libexpat_tag="R_2_7_1" | ||
| 16 | + expected_libexpat_version="2.7.1" | ||
| 17 | + expected_libexpat_sha256="0cce2e6e69b327fc607b8ff264f4b66bdf71ead55a87ffd5f3143f535f15cfa2" | ||
| 18 | 18 | ||
| 19 | 19 | expat_dir="$(realpath "$(dirname -- "${BASH_SOURCE[0]}")")" | |
| 20 | 20 | cd ${expat_dir} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - /* 7d6840a33c250b74adb0ba295d6ec818dccebebaffc8c3ed27d0b29c28adbeb3 (2.7.0+) | ||
| 1 | + /* d19ae032c224863c1527ba44d228cc34b99192c3a4c5a27af1f4e054d45ee031 (2.7.1+) | ||
| 2 | 2 | __ __ _ | |
| 3 | 3 | ___\ \/ /_ __ __ _| |_ | |
| 4 | 4 | / _ \\ /| '_ \ / _` | __| | |
@@ -3402,12 +3402,13 @@ doContent(XML_Parser parser, int startTagLevel, const ENCODING *enc, | |||
| 3402 | 3402 | break; | |
| 3403 | 3403 | /* LCOV_EXCL_STOP */ | |
| 3404 | 3404 | } | |
| 3405 | - *eventPP = s = next; | ||
| 3406 | 3405 | switch (parser->m_parsingStatus.parsing) { | |
| 3407 | 3406 | case XML_SUSPENDED: | |
| 3407 | + *eventPP = next; | ||
| 3408 | 3408 | *nextPtr = next; | |
| 3409 | 3409 | return XML_ERROR_NONE; | |
| 3410 | 3410 | case XML_FINISHED: | |
| 3411 | + *eventPP = next; | ||
| 3411 | 3412 | return XML_ERROR_ABORTED; | |
| 3412 | 3413 | case XML_PARSING: | |
| 3413 | 3414 | if (parser->m_reenter) { | |
@@ -3416,6 +3417,7 @@ doContent(XML_Parser parser, int startTagLevel, const ENCODING *enc, | |||
| 3416 | 3417 | } | |
| 3417 | 3418 | /* Fall through */ | |
| 3418 | 3419 | default:; | |
| 3420 | + *eventPP = s = next; | ||
| 3419 | 3421 | } | |
| 3420 | 3422 | } | |
| 3421 | 3423 | /* not reached */ | |
@@ -4332,19 +4334,21 @@ doCdataSection(XML_Parser parser, const ENCODING *enc, const char **startPtr, | |||
| 4332 | 4334 | /* LCOV_EXCL_STOP */ | |
| 4333 | 4335 | } | |
| 4334 | 4336 | ||
| 4335 | - *eventPP = s = next; | ||
| 4336 | 4337 | switch (parser->m_parsingStatus.parsing) { | |
| 4337 | 4338 | case XML_SUSPENDED: | |
| 4339 | + *eventPP = next; | ||
| 4338 | 4340 | *nextPtr = next; | |
| 4339 | 4341 | return XML_ERROR_NONE; | |
| 4340 | 4342 | case XML_FINISHED: | |
| 4343 | + *eventPP = next; | ||
| 4341 | 4344 | return XML_ERROR_ABORTED; | |
| 4342 | 4345 | case XML_PARSING: | |
| 4343 | 4346 | if (parser->m_reenter) { | |
| 4344 | 4347 | return XML_ERROR_UNEXPECTED_STATE; // LCOV_EXCL_LINE | |
| 4345 | 4348 | } | |
| 4346 | 4349 | /* Fall through */ | |
| 4347 | 4350 | default:; | |
| 4351 | + *eventPP = s = next; | ||
| 4348 | 4352 | } | |
| 4349 | 4353 | } | |
| 4350 | 4354 | /* not reached */ | |
@@ -5951,19 +5955,21 @@ epilogProcessor(XML_Parser parser, const char *s, const char *end, | |||
| 5951 | 5955 | default: | |
| 5952 | 5956 | return XML_ERROR_JUNK_AFTER_DOC_ELEMENT; | |
| 5953 | 5957 | } | |
| 5954 | - parser->m_eventPtr = s = next; | ||
| 5955 | 5958 | switch (parser->m_parsingStatus.parsing) { | |
| 5956 | 5959 | case XML_SUSPENDED: | |
| 5960 | + parser->m_eventPtr = next; | ||
| 5957 | 5961 | *nextPtr = next; | |
| 5958 | 5962 | return XML_ERROR_NONE; | |
| 5959 | 5963 | case XML_FINISHED: | |
| 5964 | + parser->m_eventPtr = next; | ||
| 5960 | 5965 | return XML_ERROR_ABORTED; | |
| 5961 | 5966 | case XML_PARSING: | |
| 5962 | 5967 | if (parser->m_reenter) { | |
| 5963 | 5968 | return XML_ERROR_UNEXPECTED_STATE; // LCOV_EXCL_LINE | |
| 5964 | 5969 | } | |
| 5965 | 5970 | /* Fall through */ | |
| 5966 | 5971 | default:; | |
| 5972 | + parser->m_eventPtr = s = next; | ||
| 5967 | 5973 | } | |
| 5968 | 5974 | } | |
| 5969 | 5975 | } | |
@@ -8245,7 +8251,7 @@ entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, | |||
| 8245 | 8251 | (void *)rootParser, rootParser->m_entity_stats.countEverOpened, | |
| 8246 | 8252 | rootParser->m_entity_stats.currentDepth, | |
| 8247 | 8253 | rootParser->m_entity_stats.maximumDepthSeen, | |
| 8248 | - (rootParser->m_entity_stats.currentDepth - 1) * 2, "", | ||
| 8254 | + ((int)rootParser->m_entity_stats.currentDepth - 1) * 2, "", | ||
| 8249 | 8255 | entity->is_param ? "%" : "&", entityName, action, entity->textLen, | |
| 8250 | 8256 | sourceLine); | |
| 8251 | 8257 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments