@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.13\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-06-02 01:52 +0000\n "
14+ "POT-Creation-Date : 2026-06-09 18:10 +0000\n "
1515"PO-Revision-Date : 2025-09-15 01:04+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -244,18 +244,23 @@ msgid ""
244244msgstr ""
245245
246246msgid ""
247- ":class:`!xmlparser` objects have the following methods to mitigate some "
248- "common XML vulnerabilities."
247+ ":class:`!xmlparser` objects have the following methods to tune protections "
248+ "against some common XML vulnerabilities."
249249msgstr ""
250250
251251msgid ""
252- "Sets the number of allocated bytes of dynamic memory needed to activate "
253- "protection against disproportionate use of RAM."
252+ "Sets the number of output bytes needed to activate protection against "
253+ "`billion laughs`_ attacks."
254+ msgstr ""
255+
256+ msgid ""
257+ "The number of output bytes includes amplification from entity expansion and "
258+ "reading DTD files."
254259msgstr ""
255260
256261msgid ""
257- "By default, parser objects have an allocation activation threshold of 64 "
258- "MiB, or equivalently 67,108,864 bytes ."
262+ "Parser objects usually have a protection activation threshold of 8 MiB, but "
263+ "the actual default value depends on the underlying Expat library ."
259264msgstr ""
260265
261266msgid ""
@@ -265,26 +270,33 @@ msgid ""
265270msgstr ""
266271
267272msgid ""
268- "Sets the maximum amplification factor between direct input and bytes of "
269- "dynamic memory allocated ."
273+ "Activation thresholds below 4 MiB are known to break support for DITA 1.3 "
274+ "payload and are hence not recommended ."
270275msgstr ""
271276
272277msgid ""
273- "The amplification factor is calculated as ``allocated / direct`` while "
274- "parsing, where ``direct`` is the number of bytes read from the primary "
275- "document in parsing and ``allocated`` is the number of bytes of dynamic "
276- "memory allocated in the parser hierarchy."
278+ "Sets the maximum tolerated amplification factor for protection against "
279+ "`billion laughs`_ attacks."
280+ msgstr ""
281+
282+ msgid ""
283+ "The amplification factor is calculated as ``(direct + indirect) / direct`` "
284+ "while parsing, where ``direct`` is the number of bytes read from the primary "
285+ "document in parsing and ``indirect`` is the number of bytes added by "
286+ "expanding entities and reading of external DTD files."
277287msgstr ""
278288
279289msgid ""
280290"The *max_factor* value must be a non-NaN :class:`float` value greater than "
281- "or equal to 1.0. Amplification factors greater than 100.0 can be observed "
282- "near the start of parsing even with benign files in practice. In particular, "
283- "the activation threshold should be carefully chosen to avoid false positives."
291+ "or equal to 1.0. Peak amplifications of factor 15,000 for the entire payload "
292+ "and of factor 30,000 in the middle of parsing have been observed with small "
293+ "benign files in practice. In particular, the activation threshold should be "
294+ "carefully chosen to avoid false positives."
284295msgstr ""
285296
286297msgid ""
287- "By default, parser objects have a maximum amplification factor of 100.0."
298+ "Parser objects usually have a maximum amplification factor of 100, but the "
299+ "actual default value depends on the underlying Expat library."
288300msgstr ""
289301
290302msgid ""
@@ -294,6 +306,41 @@ msgid ""
294306"should not be used as they may have no special meaning."
295307msgstr ""
296308
309+ msgid ""
310+ "The maximum amplification factor is only considered if the threshold that "
311+ "can be adjusted by :meth:`."
312+ "SetBillionLaughsAttackProtectionActivationThreshold` is exceeded."
313+ msgstr ""
314+
315+ msgid ""
316+ "Sets the number of allocated bytes of dynamic memory needed to activate "
317+ "protection against disproportionate use of RAM."
318+ msgstr ""
319+
320+ msgid ""
321+ "Parser objects usually have an allocation activation threshold of 64 MiB, "
322+ "but the actual default value depends on the underlying Expat library."
323+ msgstr ""
324+
325+ msgid ""
326+ "Sets the maximum amplification factor between direct input and bytes of "
327+ "dynamic memory allocated."
328+ msgstr ""
329+
330+ msgid ""
331+ "The amplification factor is calculated as ``allocated / direct`` while "
332+ "parsing, where ``direct`` is the number of bytes read from the primary "
333+ "document in parsing and ``allocated`` is the number of bytes of dynamic "
334+ "memory allocated in the parser hierarchy."
335+ msgstr ""
336+
337+ msgid ""
338+ "The *max_factor* value must be a non-NaN :class:`float` value greater than "
339+ "or equal to 1.0. Amplification factors greater than 100.0 can be observed "
340+ "near the start of parsing even with benign files in practice. In particular, "
341+ "the activation threshold should be carefully chosen to avoid false positives."
342+ msgstr ""
343+
297344msgid ""
298345"The maximum amplification factor is only considered if the threshold that "
299346"can be adjusted by :meth:`.SetAllocTrackerActivationThreshold` is exceeded."
0 commit comments