mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-12 18:37:12 +00:00
ad3f3b2d9e
stdlib ET does not cap entity expansion — a crafted .csproj or .lpk with nested internal entities can exhaust memory. Pre-screen input bytes for <!DOCTYPE and <!ENTITY before parsing (legitimate MSBuild/Lazarus files never contain these). Also adds the missing 2 MiB size cap to extract_lpk (csproj already had one). No new dependencies required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>