@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.11\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-07-31 19:13 +0000\n "
14+ "POT-Creation-Date : 2026-08-09 17:32 +0000\n "
1515"PO-Revision-Date : 2025-09-22 16:50+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -230,18 +230,23 @@ msgid ""
230230msgstr ""
231231
232232msgid ""
233- ":class:`!xmlparser` objects have the following methods to mitigate some "
234- "common XML vulnerabilities."
233+ ":class:`!xmlparser` objects have the following methods to tune protections "
234+ "against some common XML vulnerabilities."
235235msgstr ""
236236
237237msgid ""
238- "Sets the number of allocated bytes of dynamic memory needed to activate "
239- "protection against disproportionate use of RAM."
238+ "Sets the number of output bytes needed to activate protection against "
239+ "`billion laughs`_ attacks."
240+ msgstr ""
241+
242+ msgid ""
243+ "The number of output bytes includes amplification from entity expansion and "
244+ "reading DTD files."
240245msgstr ""
241246
242247msgid ""
243- "By default, parser objects have an allocation activation threshold of 64 "
244- "MiB, or equivalently 67,108,864 bytes ."
248+ "Parser objects usually have a protection activation threshold of 8 MiB, but "
249+ "the actual default value depends on the underlying Expat library ."
245250msgstr ""
246251
247252msgid ""
@@ -251,26 +256,33 @@ msgid ""
251256msgstr ""
252257
253258msgid ""
254- "Sets the maximum amplification factor between direct input and bytes of "
255- "dynamic memory allocated ."
259+ "Activation thresholds below 4 MiB are known to break support for DITA 1.3 "
260+ "payload and are hence not recommended ."
256261msgstr ""
257262
258263msgid ""
259- "The amplification factor is calculated as ``allocated / direct`` while "
260- "parsing, where ``direct`` is the number of bytes read from the primary "
261- "document in parsing and ``allocated`` is the number of bytes of dynamic "
262- "memory allocated in the parser hierarchy."
264+ "Sets the maximum tolerated amplification factor for protection against "
265+ "`billion laughs`_ attacks."
266+ msgstr ""
267+
268+ msgid ""
269+ "The amplification factor is calculated as ``(direct + indirect) / direct`` "
270+ "while parsing, where ``direct`` is the number of bytes read from the primary "
271+ "document in parsing and ``indirect`` is the number of bytes added by "
272+ "expanding entities and reading of external DTD files."
263273msgstr ""
264274
265275msgid ""
266276"The *max_factor* value must be a non-NaN :class:`float` value greater than "
267- "or equal to 1.0. Amplification factors greater than 100.0 can be observed "
268- "near the start of parsing even with benign files in practice. In particular, "
269- "the activation threshold should be carefully chosen to avoid false positives."
277+ "or equal to 1.0. Peak amplifications of factor 15,000 for the entire payload "
278+ "and of factor 30,000 in the middle of parsing have been observed with small "
279+ "benign files in practice. In particular, the activation threshold should be "
280+ "carefully chosen to avoid false positives."
270281msgstr ""
271282
272283msgid ""
273- "By default, parser objects have a maximum amplification factor of 100.0."
284+ "Parser objects usually have a maximum amplification factor of 100, but the "
285+ "actual default value depends on the underlying Expat library."
274286msgstr ""
275287
276288msgid ""
@@ -280,6 +292,41 @@ msgid ""
280292"should not be used as they may have no special meaning."
281293msgstr ""
282294
295+ msgid ""
296+ "The maximum amplification factor is only considered if the threshold that "
297+ "can be adjusted by :meth:`."
298+ "SetBillionLaughsAttackProtectionActivationThreshold` is exceeded."
299+ msgstr ""
300+
301+ msgid ""
302+ "Sets the number of allocated bytes of dynamic memory needed to activate "
303+ "protection against disproportionate use of RAM."
304+ msgstr ""
305+
306+ msgid ""
307+ "Parser objects usually have an allocation activation threshold of 64 MiB, "
308+ "but the actual default value depends on the underlying Expat library."
309+ msgstr ""
310+
311+ msgid ""
312+ "Sets the maximum amplification factor between direct input and bytes of "
313+ "dynamic memory allocated."
314+ msgstr ""
315+
316+ msgid ""
317+ "The amplification factor is calculated as ``allocated / direct`` while "
318+ "parsing, where ``direct`` is the number of bytes read from the primary "
319+ "document in parsing and ``allocated`` is the number of bytes of dynamic "
320+ "memory allocated in the parser hierarchy."
321+ msgstr ""
322+
323+ msgid ""
324+ "The *max_factor* value must be a non-NaN :class:`float` value greater than "
325+ "or equal to 1.0. Amplification factors greater than 100.0 can be observed "
326+ "near the start of parsing even with benign files in practice. In particular, "
327+ "the activation threshold should be carefully chosen to avoid false positives."
328+ msgstr ""
329+
283330msgid ""
284331"The maximum amplification factor is only considered if the threshold that "
285332"can be adjusted by :meth:`.SetAllocTrackerActivationThreshold` is exceeded."
0 commit comments