Commit Graph

3 Commits

Author SHA1 Message Date
Alastair Houghton
3800e63860 [Tests] Make recursion limit test more robust.
Ignore the line and column number in the output.

rdar://125989715
2024-04-08 10:38:22 +01:00
Saleem Abdulrasool
e77d5a723a Update recursion-limit.swift
Use the `%diff` substitution to ensure that `--strip-trailing-cr` is used as appropriate to ignore line endings.  This should repair the Windows builders.
2021-07-02 08:17:33 -07:00
Alastair Houghton
8f717d2c50 [Demangler] Prevent stack overflow by limiting recursion depth.
It's trivially easy to drive the remanglers, the type decoder and the node
printer into a situation where they will overflow the process's stack.  For the
compiler, this is fine (though not great), but for the runtime it's a no-no.

This changeset imposes recursion depth limits to prevent uncontrolled stack
overruns.

rdar://68449341
2021-07-01 11:11:59 +01:00