Uploaded image for project: 'tools.reader'
  1. TRDR-11

Stack overflow on whitespace in reader/read and edn/read

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Labels:
      None
    • Patch:
      Code

      Description

      reader/read and edn/read call themselves recursively for several encountered character classes - whitespace, comments.
      This is high-risk for stack overflow, especially for machine-generated data.

      Motivating Use Case: cljs files generated via cljx are particularly prone to trigger tools.reader stack overflow errors. Cljx replaces un-included forms with homomorphic whitespace blocks to preserve line number and column errors on compilation.

        Attachments

          Activity

            People

            • Assignee:
              bronsa Nicola Mometto
              Reporter:
              pmbauer Paul Bauer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: