mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 21:24:59 +00:00
doc: Fix return value docs on XML_SetBillionLaughs[..] functions (#522)
This commit is contained in:
parent
59d5c6eacd
commit
8c2b1853cd
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue