Xpact Milestone: 177,347 Real-World XML Files with Zero Failures — 100% Agreement

17 views
Skip to first unread message

Finnian Reilly

unread,
Aug 18, 2026, 1:49:55 PM (8 days ago) Aug 18
to Eiffel Users

Xpact Milestone: 177,347 Real-World XML Files with Zero Failures — 100% Agreement

Rustification — make it memory-safe.
Contractification — make it correct by contract.

Table of Contents


-- 
SmartDevelopersUseUnderScoresInTheirIdentifiersBecause_it_is_much_easier_to_read
(Eiffel = Security by Contract + C Speed)

Finnian Reilly

unread,
Aug 19, 2026, 12:40:30 PM (7 days ago) Aug 19
to eiffel...@googlegroups.com
On 18/08/2026 18:49, Finnian Reilly wrote:
The next goal: Defusing the "billion-LOL" Bomb With Eiffel

Well that wasn't difficult.. 🙂

XT_XML_PARSER_BASE

   inspect a_source_type
      when Source_expansion then
         entity_expansion_count := entity_expansion_count + (tok_end - index).to_natural_64
         put_natural_64 (entity_expansion_count, a_entity_expansion_count)

      when Source_expansion_with_checks then
         entity_expansion_count := entity_expansion_count + (tok_end - index).to_natural_64
         if (content_count + entity_expansion_count) / content_count > max_expansion_proportion then
            Result := Error_amplification_limit_breach; done := True
         else
            put_natural_64 (entity_expansion_count, a_entity_expansion_count)
         end

   else end
Reply all
Reply to author
Forward
0 new messages