File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -1198,14 +1198,14 @@ hierarchy.
11981198The 'max_factor' value must be a non-NaN floating point value greater than
11991199or equal to 1.0. Amplifications factors greater than 100 can been observed
12001200near 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
12041204static PyObject *
12051205pyexpat_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 ) {
You can’t perform that action at this time.
0 commit comments