Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
f70f7a9
Fix min/max value in Iceberg writes
ianton-ru Dec 5, 2025
85b181e
Backport #94070 to 25.8: Fix bad check for typed paths in JSON
robot-clickhouse Jan 15, 2026
6196a68
Update autogenerated version to 25.8.15.35 and contributors
robot-clickhouse Jan 21, 2026
b3db54e
Merge pull request #94355 from ClickHouse/backport/25.8/94070
Avogar Jan 21, 2026
96c6d0c
Backport #92076 to 25.8: Add additional checks for missing streams in…
robot-clickhouse Jan 21, 2026
b24114f
Backport #94605 to 25.8: Add support for SQL-defined named collection…
robot-clickhouse Jan 21, 2026
0fcf725
Update Configuration.cpp
pamarcos Jan 21, 2026
0292e89
Update Configuration.h
pamarcos Jan 21, 2026
9262269
Update BackupInfo.cpp
pamarcos Jan 21, 2026
8ca8c02
Update test.py
pamarcos Jan 21, 2026
c3a5247
Backport #93038 to 25.8: Proper handle sparse nullable columns in inn…
robot-clickhouse Jan 21, 2026
bdf432f
Backport #94725 to 25.8: Preserve constant index granularity (use_con…
robot-clickhouse Jan 22, 2026
4b3d973
Update Configuration.cpp
pamarcos Jan 22, 2026
fa7a650
Backport #94680 to 25.8: Fix incorrect RIGHT join result when using c…
robot-clickhouse Jan 22, 2026
18b1b14
Update tests/queries/0_stateless/03800_use_const_adaptive_granularity…
azat Jan 22, 2026
c2a9a3e
Backport #94617 to 25.8: Fix permission issues in BACKUP/RESTORE oper…
robot-clickhouse Jan 22, 2026
7d995d3
Update BackupsWorker.cpp
pamarcos Jan 22, 2026
1f533a4
Revert "Update BackupsWorker.cpp"
pamarcos Jan 22, 2026
6d640cb
Update BackupsWorker.cpp
pamarcos Jan 22, 2026
fb0c7b7
Update test.py
pamarcos Jan 22, 2026
7f820f2
Merge pull request #94819 from ClickHouse/backport/25.8/94617
clickhouse-gh[bot] Jan 22, 2026
042ca77
Update tests/queries/0_stateless/03800_use_const_adaptive_granularity…
azat Jan 22, 2026
ea5e694
Backport #94627 to 25.8: fix segfault in DeltaLakeMetadata::getFieldV…
robot-clickhouse Jan 22, 2026
c9713c4
Merge pull request #94727 from ClickHouse/backport/25.8/94605
pamarcos Jan 22, 2026
5184693
Merge pull request #94840 from ClickHouse/backport/25.8/94627
clickhouse-gh[bot] Jan 22, 2026
220df44
Merge pull request #94782 from ClickHouse/backport/25.8/94725
clickhouse-gh[bot] Jan 22, 2026
5cb3453
Backport #94855 to 25.8: Add index out of range check in advanced sha…
robot-clickhouse Jan 22, 2026
44d69c8
Merge pull request #94868 from ClickHouse/backport/25.8/94855
clickhouse-gh[bot] Jan 23, 2026
2f3f625
Merge pull request #94808 from ClickHouse/backport/25.8/94680
vdimir Jan 23, 2026
c5e7f1c
Merge pull request #94761 from ClickHouse/backport/25.8/93038
Avogar Jan 23, 2026
ec29a51
Update MergeTreeReaderWide.cpp
Avogar Jan 23, 2026
7a77edf
Backport #94600 to 25.8: Fix crash in `ActionsDAG` partial evaluation…
robot-clickhouse Jan 23, 2026
8921078
Backport #94742 to 25.8: Use `curl` 8.18.0
robot-clickhouse Jan 23, 2026
aecd130
Merge pull request #94722 from ClickHouse/backport/25.8/92076
clickhouse-gh[bot] Jan 23, 2026
15df1c4
Merge pull request #94926 from ClickHouse/backport/25.8/94600
clickhouse-gh[bot] Jan 23, 2026
7fa22b6
Merge pull request #94943 from ClickHouse/backport/25.8/94742
clickhouse-gh[bot] Jan 23, 2026
05322b3
Backport #95005 to 25.8: Revert "Preserve constant index granularity …
robot-clickhouse Jan 24, 2026
686acf3
Merge pull request #95037 from ClickHouse/backport/25.8/95005
clickhouse-gh[bot] Jan 24, 2026
d69c4eb
Backport #94852 to 25.8: Fix readonlyness of encrypted disks
robot-clickhouse Jan 24, 2026
a7f89f2
Backport #93500 to 25.8: Threshold for dirty allocator pages
robot-clickhouse Jan 26, 2026
38c0e86
Backport #94851 to 25.8: Fix use-of-uninitialized-value in `getURLHos…
robot-clickhouse Jan 26, 2026
4da1498
Merge pull request #95144 from ClickHouse/backport/25.8/93500
antonio2368 Jan 26, 2026
4c09543
Merge pull request #95148 from ClickHouse/backport/25.8/94851
clickhouse-gh[bot] Jan 26, 2026
0b4cce2
Apply suggestions from code review
azat Jan 26, 2026
f892702
Backport #94902 to 25.8: Run jemalloc dirty pages purging in a differ…
robot-clickhouse Jan 26, 2026
4b70912
Backport #94323 to 25.8: Fix function to subcolumns optimization not …
robot-clickhouse Jan 26, 2026
2c8120e
Merge pull request #95165 from ClickHouse/backport/25.8/94902
antonio2368 Jan 26, 2026
f6ff5a7
Backport #95189 to 25.8: Use `postgres` REL_18_1
robot-clickhouse Jan 27, 2026
c8d9f3c
Backport #95218 to 25.8: Use `libexpat` 2.7.3
robot-clickhouse Jan 27, 2026
6bd8b1e
Backport #95190 to 25.8: CI: BackportCI to check PR content is valid
robot-clickhouse Jan 27, 2026
9c3e124
Merge pull request #95269 from ClickHouse/backport/25.8/95190
clickhouse-gh[bot] Jan 27, 2026
89b32de
Backport #92777 to 25.8: Fix query parameter substitution in CREATE U…
robot-clickhouse Jan 27, 2026
69a1731
Update 03791_function_to_subcolumns_optimization_on_subcolumns.sql
Avogar Jan 27, 2026
86ec8ff
Merge pull request #95200 from ClickHouse/backport/25.8/94323
clickhouse-gh[bot] Jan 27, 2026
e84e135
Merge pull request #95238 from ClickHouse/backport/25.8/95189
thevar1able Jan 27, 2026
6165c55
Merge pull request #95251 from ClickHouse/backport/25.8/95218
thevar1able Jan 27, 2026
a0ef3e7
Backport #93779 to 25.8: Fix attaching Replicated DBs when the inters…
robot-clickhouse Jan 28, 2026
5f2321b
Merge pull request #95349 from ClickHouse/backport/25.8/93779
tuanpach Jan 28, 2026
f54dfc0
Merge pull request #95282 from ClickHouse/backport/25.8/92777
evillique Jan 28, 2026
63c3f5a
Backport #94966 to 25.8: query view log duration
robot-clickhouse Jan 28, 2026
44d2c8a
Merge pull request #95059 from ClickHouse/backport/25.8/94852
azat Jan 28, 2026
d42b4e6
Merge pull request #95432 from ClickHouse/backport/25.8/94966
clickhouse-gh[bot] Jan 28, 2026
9d3ef33
Backport #95356 to 25.8: Fix storage lifetime with distributed plan
robot-clickhouse Jan 29, 2026
11117b5
Merge pull request #91589 from ianton-ru/fix_icebereg_write_minmax
scanhex12 Jan 29, 2026
af12721
Merge branch 'backport/25.8/93827' into backport-93827-2
KochetovNicolai Jan 29, 2026
43e59e7
Merge pull request #95499 from ClickHouse/backport/25.8/95356
clickhouse-gh[bot] Jan 29, 2026
7366f3a
Backport #93659 to 25.8: Add a magnificent test for backups
robot-clickhouse Jan 29, 2026
df11cc6
Merge pull request #95527 from ClickHouse/backport/25.8/93659
clickhouse-gh[bot] Jan 29, 2026
d2c83d2
Backport #95470 to 25.8: Fix check for encrypted disks over plain_rew…
robot-clickhouse Jan 29, 2026
40701eb
Merge pull request #95559 from ClickHouse/backport/25.8/95470
clickhouse-gh[bot] Jan 29, 2026
9d5a8e4
Backport #95325 to 25.8: Mask password in logs and system tables for …
robot-clickhouse Jan 29, 2026
bd3994f
Fix build error
amosbird Jan 30, 2026
1e1b11a
Backport #95466 to 25.8: Avoid possible crash for distributed queries…
robot-clickhouse Jan 30, 2026
cfacd52
Merge pull request #95570 from ClickHouse/backport/25.8/95325
antaljanosbenjamin Jan 30, 2026
3950cf9
Fix test
amosbird Jan 30, 2026
ff72c30
Backport #94892 to 25.8: Fix crash in clearDirectory on concurrent re…
robot-clickhouse Jan 30, 2026
cca9124
Backport #94816 to 25.8: Fix incorrect monotonicity for `toWeek`, `to…
robot-clickhouse Jan 30, 2026
a970865
Merge pull request #95625 from ClickHouse/backport/25.8/94892
clickhouse-gh[bot] Jan 30, 2026
9b34e38
Merge pull request #95638 from ClickHouse/backport/25.8/94816
clickhouse-gh[bot] Jan 30, 2026
9dd9b68
Merge pull request #95588 from amosbird/cherrypick/25.8/93827
KochetovNicolai Jan 30, 2026
7b54cda
Merge pull request #95602 from ClickHouse/backport/25.8/95466
azat Jan 30, 2026
cb90c71
Backport #95664 to 25.8: Fix race between distributed DDL and droppin…
robot-clickhouse Jan 31, 2026
7938087
Merge pull request #95691 from ClickHouse/backport/25.8/95664
clickhouse-gh[bot] Feb 1, 2026
49b2202
merge 25.8.16
zvonand Feb 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 40 additions & 26 deletions base/poco/XML/include/Poco/XML/expat.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
Copyright (c) 2023 Hanno Böck <hanno@gentoo.org>
Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
Copyright (c) 2025 Matthew Fernandez <matthew.fernandez@gmail.com>
Licensed under the MIT license:

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
Expand All @@ -42,21 +43,21 @@
*/

#ifndef Expat_INCLUDED
#define Expat_INCLUDED 1
# define Expat_INCLUDED 1

#include <stdlib.h>
#include "expat_external.h"
# include <stdlib.h>
# include "expat_external.h"

#ifdef __cplusplus
# ifdef __cplusplus
extern "C" {
#endif
# endif

struct XML_ParserStruct;
typedef struct XML_ParserStruct *XML_Parser;

typedef unsigned char XML_Bool;
#define XML_TRUE ((XML_Bool)1)
#define XML_FALSE ((XML_Bool)0)
# define XML_TRUE ((XML_Bool)1)
# define XML_FALSE ((XML_Bool)0)

/* The XML_Status enum gives the possible return values for several
API functions. The preprocessor #defines are included so this
Expand All @@ -73,11 +74,11 @@ typedef unsigned char XML_Bool;
*/
enum XML_Status {
XML_STATUS_ERROR = 0,
#define XML_STATUS_ERROR XML_STATUS_ERROR
# define XML_STATUS_ERROR XML_STATUS_ERROR
XML_STATUS_OK = 1,
#define XML_STATUS_OK XML_STATUS_OK
# define XML_STATUS_OK XML_STATUS_OK
XML_STATUS_SUSPENDED = 2
#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
# define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
};

enum XML_Error {
Expand Down Expand Up @@ -276,7 +277,7 @@ XML_ParserCreate_MM(const XML_Char *encoding,

/* Prepare a parser object to be reused. This is particularly
valuable when memory allocation overhead is disproportionately high,
such as when a large number of small documnents need to be parsed.
such as when a large number of small documents need to be parsed.
All handlers are cleared from the parser, except for the
unknownEncodingHandler. The parser's external state is re-initialized
except for the values of ns and ns_triplets.
Expand Down Expand Up @@ -680,7 +681,7 @@ XMLPARSEAPI(void)
XML_SetUserData(XML_Parser parser, void *userData);

/* Returns the last value set by XML_SetUserData or NULL. */
#define XML_GetUserData(parser) (*(void **)(parser))
# define XML_GetUserData(parser) (*(void **)(parser))

/* This is equivalent to supplying an encoding argument to
XML_ParserCreate. On success XML_SetEncoding returns non-zero,
Expand Down Expand Up @@ -752,7 +753,7 @@ XML_GetSpecifiedAttributeCount(XML_Parser parser);
XMLPARSEAPI(int)
XML_GetIdAttributeIndex(XML_Parser parser);

#ifdef XML_ATTR_INFO
# ifdef XML_ATTR_INFO
/* Source file byte offsets for the start and end of attribute names and values.
The value indices are exclusive of surrounding quotes; thus in a UTF-8 source
file an attribute value of "blah" will yield:
Expand All @@ -773,7 +774,7 @@ typedef struct {
*/
XMLPARSEAPI(const XML_AttrInfo *)
XML_GetAttributeInfo(XML_Parser parser);
#endif
# endif

/* Parses some input. Returns XML_STATUS_ERROR if a fatal error is
detected. The last call to XML_Parse must have isFinal true; len
Expand Down Expand Up @@ -970,9 +971,9 @@ XMLPARSEAPI(const char *)
XML_GetInputContext(XML_Parser parser, int *offset, int *size);

/* For backwards compatibility with previous versions. */
#define XML_GetErrorLineNumber XML_GetCurrentLineNumber
#define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
#define XML_GetErrorByteIndex XML_GetCurrentByteIndex
# define XML_GetErrorLineNumber XML_GetCurrentLineNumber
# define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
# define XML_GetErrorByteIndex XML_GetCurrentByteIndex

/* Frees the content model passed to the element declaration handler */
XMLPARSEAPI(void)
Expand Down Expand Up @@ -1032,7 +1033,10 @@ enum XML_FeatureEnum {
XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT,
/* Added in Expat 2.6.0. */
XML_FEATURE_GE
XML_FEATURE_GE,
/* Added in Expat 2.7.2. */
XML_FEATURE_ALLOC_TRACKER_MAXIMUM_AMPLIFICATION_DEFAULT,
XML_FEATURE_ALLOC_TRACKER_ACTIVATION_THRESHOLD_DEFAULT,
/* Additional features must be added to the end of this enum. */
};

Expand All @@ -1045,7 +1049,7 @@ typedef struct {
XMLPARSEAPI(const XML_Feature *)
XML_GetFeatureList(void);

#if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
# if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
/* Added in Expat 2.4.0 for XML_DTD defined and
* added in Expat 2.6.0 for XML_GE == 1. */
XMLPARSEAPI(XML_Bool)
Expand All @@ -1057,7 +1061,17 @@ XML_SetBillionLaughsAttackProtectionMaximumAmplification(
XMLPARSEAPI(XML_Bool)
XML_SetBillionLaughsAttackProtectionActivationThreshold(
XML_Parser parser, unsigned long long activationThresholdBytes);
#endif

/* Added in Expat 2.7.2. */
XMLPARSEAPI(XML_Bool)
XML_SetAllocTrackerMaximumAmplification(XML_Parser parser,
float maximumAmplificationFactor);

/* Added in Expat 2.7.2. */
XMLPARSEAPI(XML_Bool)
XML_SetAllocTrackerActivationThreshold(
XML_Parser parser, unsigned long long activationThresholdBytes);
# endif

/* Added in Expat 2.6.0. */
XMLPARSEAPI(XML_Bool)
Expand All @@ -1066,12 +1080,12 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
/* Expat follows the semantic versioning convention.
See https://semver.org
*/
#define XML_MAJOR_VERSION 2
#define XML_MINOR_VERSION 7
#define XML_MICRO_VERSION 1
# define XML_MAJOR_VERSION 2
# define XML_MINOR_VERSION 7
# define XML_MICRO_VERSION 3

#ifdef __cplusplus
# ifdef __cplusplus
}
#endif
# endif

#endif /* not Expat_INCLUDED */
122 changes: 61 additions & 61 deletions base/poco/XML/include/Poco/XML/expat_external.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/

#ifndef Expat_External_INCLUDED
#define Expat_External_INCLUDED 1
# define Expat_External_INCLUDED 1

/* External API definitions */

Expand All @@ -64,12 +64,12 @@
compiled with the cdecl calling convention as the default since
system headers may assume the cdecl convention.
*/
#ifndef XMLCALL
# if defined(_MSC_VER)
# define XMLCALL __cdecl
# elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
# define XMLCALL __attribute__((cdecl))
# else
# ifndef XMLCALL
# if defined(_MSC_VER)
# define XMLCALL __cdecl
# elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
# define XMLCALL __attribute__((cdecl))
# else
/* For any platform which uses this definition and supports more than
one calling convention, we need to extend this definition to
declare the convention used on that platform, if it's possible to
Expand All @@ -80,86 +80,86 @@
pre-processor and how to specify the same calling convention as the
platform's malloc() implementation.
*/
# define XMLCALL
# endif
#endif /* not defined XMLCALL */
# define XMLCALL
# endif
# endif /* not defined XMLCALL */

#if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
# ifndef XML_BUILDING_EXPAT
# if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
# ifndef XML_BUILDING_EXPAT
/* using Expat from an application */

# if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
# define XMLIMPORT __declspec(dllimport)
# if defined(_MSC_VER) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
# define XMLIMPORT __declspec(dllimport)
# endif

# endif
# endif /* not defined XML_STATIC */

# ifndef XML_ENABLE_VISIBILITY
# define XML_ENABLE_VISIBILITY 0
# endif
#endif /* not defined XML_STATIC */

#ifndef XML_ENABLE_VISIBILITY
# define XML_ENABLE_VISIBILITY 0
#endif

#if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
# define XMLIMPORT __attribute__((visibility("default")))
#endif
# if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
# define XMLIMPORT __attribute__((visibility("default")))
# endif

/* If we didn't define it above, define it away: */
#ifndef XMLIMPORT
# define XMLIMPORT
#endif

#if defined(__GNUC__) \
&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
# define XML_ATTR_MALLOC __attribute__((__malloc__))
#else
# define XML_ATTR_MALLOC
#endif

#if defined(__GNUC__) \
&& ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
#else
# define XML_ATTR_ALLOC_SIZE(x)
#endif

#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL

#ifdef __cplusplus
extern "C" {
#endif
# ifndef XMLIMPORT
# define XMLIMPORT
# endif

# if defined(__GNUC__) \
&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
# define XML_ATTR_MALLOC __attribute__((__malloc__))
# else
# define XML_ATTR_MALLOC
# endif

#ifdef XML_UNICODE_WCHAR_T
# ifndef XML_UNICODE
# define XML_UNICODE
# if defined(__GNUC__) \
&& ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
# else
# define XML_ATTR_ALLOC_SIZE(x)
# endif
# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"

# define XMLPARSEAPI(type) XMLIMPORT type XMLCALL

# ifdef __cplusplus
extern "C" {
# endif
#endif

#ifdef XML_UNICODE /* Information is UTF-16 encoded. */
# ifdef XML_UNICODE_WCHAR_T
# ifndef XML_UNICODE
# define XML_UNICODE
# endif
# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
# endif
# endif

# ifdef XML_UNICODE /* Information is UTF-16 encoded. */
# ifdef XML_UNICODE_WCHAR_T
typedef wchar_t XML_Char;
typedef wchar_t XML_LChar;
# else
# else
typedef unsigned short XML_Char;
typedef char XML_LChar;
# endif /* XML_UNICODE_WCHAR_T */
#else /* Information is UTF-8 encoded. */
# endif /* XML_UNICODE_WCHAR_T */
# else /* Information is UTF-8 encoded. */
typedef char XML_Char;
typedef char XML_LChar;
#endif /* XML_UNICODE */
# endif /* XML_UNICODE */

#ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
# ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
typedef long long XML_Index;
typedef unsigned long long XML_Size;
#else
# else
typedef long XML_Index;
typedef unsigned long XML_Size;
#endif /* XML_LARGE_SIZE */
# endif /* XML_LARGE_SIZE */

#ifdef __cplusplus
# ifdef __cplusplus
}
#endif
# endif

#endif /* not Expat_External_INCLUDED */
16 changes: 15 additions & 1 deletion base/poco/XML/src/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
#endif

#include <limits.h> // ULONG_MAX
#include <stddef.h> // size_t

#if defined(_WIN32) \
&& (! defined(__USE_MINGW_ANSI_STDIO) \
Expand All @@ -127,7 +128,7 @@
# elif ULONG_MAX == 18446744073709551615u // 2^64-1
# define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "ld"
# define EXPAT_FMT_SIZE_T(midpart) "%" midpart "lu"
# elif defined(EMSCRIPTEN) // 32bit mode Emscripten
# elif defined(__wasm32__) // 32bit mode Emscripten or WASI SDK
# define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "ld"
# define EXPAT_FMT_SIZE_T(midpart) "%" midpart "zu"
# else
Expand All @@ -148,6 +149,16 @@
100.0f
#define EXPAT_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT \
8388608 // 8 MiB, 2^23

#define EXPAT_ALLOC_TRACKER_MAXIMUM_AMPLIFICATION_DEFAULT 100.0f
#define EXPAT_ALLOC_TRACKER_ACTIVATION_THRESHOLD_DEFAULT \
67108864 // 64 MiB, 2^26

// NOTE: If function expat_alloc was user facing, EXPAT_MALLOC_ALIGNMENT would
// have to take sizeof(long double) into account
#define EXPAT_MALLOC_ALIGNMENT sizeof(long long) // largest parser (sub)member
#define EXPAT_MALLOC_PADDING ((EXPAT_MALLOC_ALIGNMENT) - sizeof(size_t))

/* NOTE END */

#include "Poco/XML/expat.h" // so we can use type XML_Parser below
Expand All @@ -171,6 +182,9 @@ extern
#endif
XML_Bool g_reparseDeferralEnabledDefault; // written ONLY in runtests.c
#if defined(XML_TESTING)
void *expat_malloc(XML_Parser parser, size_t size, int sourceLine);
void expat_free(XML_Parser parser, void *ptr, int sourceLine);
void *expat_realloc(XML_Parser parser, void *ptr, size_t size, int sourceLine);
extern unsigned int g_bytesScanned; // used for testing only
#endif

Expand Down
Loading
Loading