Issue Task Resolved

#111043Restore oversized XML parser test coverage

Wouter Wolters 10/13/26, 19:01 updated 10/14/26, 06:55

Description

The 10mb dataset in Typo3XmlParserTest has been disabled since #104218, with a TODO requesting investigation.

The dataset creates a single text node of 10 MiB (10,485,760 bytes), exceeding libxml’s default limit of 10,000,000 bytes. On PHP 8.5.7 with libxml 2.13.9, parsing succeeds at exactly 10,000,000 bytes and fails at 10,000,001 bytes. The original dataset succeeds when LIBXML_PARSEHUGE is explicitly supplied through the existing LOAD_OPTIONS.

Replace the disabled dataset with an active 10 MiB case using LIBXML_PARSEHUGE, and add a test verifying rejection above the default limit. Remove the TODO and use MiB in dataset names to reflect the generated sizes

Reviews 2

History 13

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-14T06:55:14+00:00" > 10/14/26, 06:55 </span>

    Applied in changeset commit:91cb4b3315337083e47b5e381ab4b0f28b08e603.