diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2021-12-14 01:30:37 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2021-12-14 01:33:49 +0100 |
commit | 8c2b1853cdcbea1ac1ba5f2f945f7d26ee41aa1d (patch) | |
tree | d2bf39937d8e684131479eefc2df09a18b30f863 | |
parent | 59d5c6eacd96731eb01868d7eaf6ab5997b2c5f4 (diff) | |
download | libexpat-git-8c2b1853cdcbea1ac1ba5f2f945f7d26ee41aa1d.tar.gz |
doc: Fix return value docs on XML_SetBillionLaughs[..] functions (#522)issue-522-fix-return-value-docs
-rw-r--r-- | expat/Changes | 2 | ||||
-rw-r--r-- | expat/doc/reference.html | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/expat/Changes b/expat/Changes index 45e45dd3..578a48d7 100644 --- a/expat/Changes +++ b/expat/Changes @@ -12,6 +12,8 @@ Release 2.4.2 xxx xxx xx xxxx #495 CMake: MinGW: Fix pkg-config section "Libs" for - non-release build types (e.g. -DCMAKE_BUILD_TYPE=Debug) - multi-config CMake generators (e.g. Ninja Multi-Config) + #522 #523 docs: Fix return value docs for both + XML_SetBillionLaughsAttackProtection* functions Special thanks to: Dong-hee Na diff --git a/expat/doc/reference.html b/expat/doc/reference.html index 261c7a3d..bfea3b25 100644 --- a/expat/doc/reference.html +++ b/expat/doc/reference.html @@ -2102,7 +2102,7 @@ XML_SetBillionLaughsAttackProtectionMaximumAmplification(XML_Parser p, <a href="https://en.wikipedia.org/wiki/Billion_laughs_attack">billion laughs attacks</a> (default: <code>100.0</code>) of parser <code>p</code> to <code>maximumAmplificationFactor</code>, and - returns <code>XML_TRUE</code> upon success and <code>XML_TRUE</code> upon error. + returns <code>XML_TRUE</code> upon success and <code>XML_FALSE</code> upon error. </p> The amplification factor is calculated as .. @@ -2152,7 +2152,7 @@ XML_SetBillionLaughsAttackProtectionActivationThreshold(XML_Parser p, <a href="https://en.wikipedia.org/wiki/Billion_laughs_attack">billion laughs attacks</a> (default: <code>8 MiB</code>) of parser <code>p</code> to <code>activationThresholdBytes</code>, and - returns <code>XML_TRUE</code> upon success and <code>XML_TRUE</code> upon error. + returns <code>XML_TRUE</code> upon success and <code>XML_FALSE</code> upon error. </p> <p>For a call to <code>XML_SetBillionLaughsAttackProtectionActivationThreshold</code> to succeed:</p> |