@@ -1193,24 +1193,24 @@ pyexpat.xmlparser.SetAllocTrackerMaximumAmplification
11931193
11941194Sets the maximum amplification factor between direct input and bytes of dynamic memory allocated.
11951195
1196- By default, parsers objects have a maximum amplification factor of 100.
1197-
11981196The amplification factor is calculated as "allocated / direct" while parsing,
11991197where "direct" is the number of bytes read from the primary document in parsing
12001198and "allocated" is the number of bytes of dynamic memory allocated in the parser
12011199hierarchy.
12021200
12031201The 'max_factor' value must be a non-NaN floating point value greater than
1204- or equal to 1.0. Amplifications factors greater than 100 can been observed
1205- near the start of parsing even with benign files in practice. As such, the
1206- activation threshold should be carefully chosen to avoid false positives.
1202+ or equal to 1.0. Amplification factors greater than 100.0 can be observed
1203+ near the start of parsing even with benign files in practice. In particular,
1204+ the activation threshold should be carefully chosen to avoid false positives.
1205+
1206+ By default, parser objects have a maximum amplification factor of 100.0.
12071207[clinic start generated code]*/
12081208
12091209static PyObject *
12101210pyexpat_xmlparser_SetAllocTrackerMaximumAmplification_impl (xmlparseobject * self ,
12111211 PyTypeObject * cls ,
12121212 float max_factor )
1213- /*[clinic end generated code: output=6e44bd48c9b112a0 input=23ca8b8f7de04462 ]*/
1213+ /*[clinic end generated code: output=6e44bd48c9b112a0 input=e4f48064c79bf323 ]*/
12141214{
12151215#if XML_COMBINED_VERSION >= 20702
12161216 assert (self -> itself != NULL );
@@ -1250,14 +1250,14 @@ pyexpat.xmlparser.SetAllocTrackerActivationThreshold
12501250
12511251Sets the number of allocated bytes of dynamic memory needed to activate protection against disproportionate use of RAM.
12521252
1253- By default, parsers objects have an allocation activation threshold of 64 MiB.
1253+ By default, parser objects have an allocation activation threshold of 64 MiB.
12541254[clinic start generated code]*/
12551255
12561256static PyObject *
12571257pyexpat_xmlparser_SetAllocTrackerActivationThreshold_impl (xmlparseobject * self ,
12581258 PyTypeObject * cls ,
12591259 unsigned long long threshold )
1260- /*[clinic end generated code: output=bed7e93207ba08c5 input=8453509a137a47c0 ]*/
1260+ /*[clinic end generated code: output=bed7e93207ba08c5 input=54182cd71ad69978 ]*/
12611261{
12621262#if XML_COMBINED_VERSION >= 20702
12631263 assert (self -> itself != NULL );
0 commit comments