Skip to content

Commit 7f91f2e

Browse files
committed
update docs
1 parent fb83fb5 commit 7f91f2e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Doc/library/pyexpat.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ well-known XML vulnerabilities.
249249
The *max_factor* value must be a non-NaN :class:`float` value greater than
250250
or equal to 1.0. Amplifications factors greater than 100 can been observed
251251
near the start of parsing even with benign files in practice. As such, the
252-
upper bound must be carefully chosen so to avoid false positives.
252+
activation threshold should be carefully chosen to avoid false positives.
253253

254254
An :exc:`ExpatError` is raised if this method is called on a non-root
255255
parser or if *max_factor* is outside the valid range.
@@ -259,7 +259,8 @@ well-known XML vulnerabilities.
259259
.. note::
260260

261261
The maximum amplification factor is only considered if the threshold
262-
specified by :meth:`.SetAllocTrackerActivationThreshold` is reached.
262+
that can be adjusted :meth:`.SetAllocTrackerActivationThreshold` is
263+
exceeded.
263264

264265
.. versionadded:: next
265266

Modules/clinic/pyexpat.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/pyexpat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,14 +1198,14 @@ hierarchy.
11981198
The 'max_factor' value must be a non-NaN floating point value greater than
11991199
or equal to 1.0. Amplifications factors greater than 100 can been observed
12001200
near the start of parsing even with benign files in practice. As such, the
1201-
upper bound must be carefully chosen so to avoid false positives.
1201+
activation threshold should be carefully chosen to avoid false positives.
12021202
[clinic start generated code]*/
12031203

12041204
static PyObject *
12051205
pyexpat_xmlparser_SetAllocTrackerMaximumAmplification_impl(xmlparseobject *self,
12061206
PyTypeObject *cls,
12071207
float max_factor)
1208-
/*[clinic end generated code: output=6e44bd48c9b112a0 input=18e8d07329c0efda]*/
1208+
/*[clinic end generated code: output=6e44bd48c9b112a0 input=23ca8b8f7de04462]*/
12091209
{
12101210
assert(self->itself != NULL);
12111211
if (XML_SetAllocTrackerMaximumAmplification(self->itself, max_factor) == XML_TRUE) {

0 commit comments

Comments
 (0)