mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 01:29:23 -06:00
Some operations set `exec`'s `maxOutput` to a value larger than the max string length. This change ensures we always cap output to the engine's string limit (currently 512 MB in recent Node versions). This also tweaks handling when reaching the string limit to ensure adding the "truncated" message itself does not send us beyond the limit.