From a8fa7ccb47307fbf67141b5a6611456e2698dade Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sun, 28 Sep 2025 21:20:40 -0700 Subject: Vendor import of expat 2.7.3. --- doc/reference.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'doc/reference.html') diff --git a/doc/reference.html b/doc/reference.html index 12b12b92ff6d..d2dded499435 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -52,7 +52,7 @@

The Expat XML Parser - Release 2.7.2 + Release 2.7.3

@@ -2137,8 +2137,8 @@ XML_Size XMLCALL XML_GetCurrentColumnNumber(XML_Parser p);
-Return the offset, from the beginning of the current line, of -the position. +Return the offset, from the beginning of the current line, of +the position. The first column is reported as 0.

XML_GetCurrentByteCount

@@ -2200,7 +2200,10 @@ XML_SetBillionLaughsAttackProtectionMaximumAmplification(XML_Parser p, returns XML_TRUE upon success and XML_FALSE upon error.

-

The amplification factor is calculated as ..

+

+ Once the threshold for activation is reached, + the amplification factor is calculated as .. +

amplification := (direct + indirect) / direct

.. while parsing, whereas @@ -2317,7 +2320,10 @@ XML_SetAllocTrackerMaximumAmplification(XML_Parser p, -

The amplification factor is calculated as ..

+

+ Once the threshold for activation is reached, + the amplification factor is calculated as .. +

amplification := allocated / direct

.. while parsing, whereas @@ -2339,7 +2345,7 @@ XML_SetAllocTrackerMaximumAmplification(XML_Parser p,

Note: - Amplifications factors greater than 100 can been observed near the start of parsing + Amplifications factors greater than 100.0 can been observed near the start of parsing even with benign files in practice. So if you do reduce the maximum allowed amplification, -- cgit v1.3