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.
249
249
The *max_factor * value must be a non-NaN :class: `float ` value greater than
250
250
or equal to 1.0. Amplifications factors greater than 100 can been observed
251
251
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.
253
253
254
254
An :exc: `ExpatError ` is raised if this method is called on a non-root
255
255
parser or if *max_factor * is outside the valid range.
@@ -259,7 +259,8 @@ well-known XML vulnerabilities.
259
259
.. note ::
260
260
261
261
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.
263
264
264
265
.. versionadded :: next
265
266
Original file line number Diff line number Diff line change @@ -1198,14 +1198,14 @@ hierarchy.
1198
1198
The 'max_factor' value must be a non-NaN floating point value greater than
1199
1199
or equal to 1.0. Amplifications factors greater than 100 can been observed
1200
1200
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.
1202
1202
[clinic start generated code]*/
1203
1203
1204
1204
static PyObject *
1205
1205
pyexpat_xmlparser_SetAllocTrackerMaximumAmplification_impl (xmlparseobject * self ,
1206
1206
PyTypeObject * cls ,
1207
1207
float max_factor )
1208
- /*[clinic end generated code: output=6e44bd48c9b112a0 input=18e8d07329c0efda ]*/
1208
+ /*[clinic end generated code: output=6e44bd48c9b112a0 input=23ca8b8f7de04462 ]*/
1209
1209
{
1210
1210
assert (self -> itself != NULL );
1211
1211
if (XML_SetAllocTrackerMaximumAmplification (self -> itself , max_factor ) == XML_TRUE ) {
You can’t perform that action at this time.
0 commit comments