Skip to content

stack overflow #196

Open
Open

Description

@jeffmad

We really like like this tool and have gotten some great feedback from it.

here is a function that causes stack overflow

(defn crash-me [s]
(when-not (empty? s)
(filter #{\0 \1 \2 \3 \4 \5 \6 \7 \8 \9 .} s)))

I am not sure exactly what the toxic combination is. (when (seq s) blah) seemed to fix it, and so did
filtering on #(or (Character/isDigit %) (= . %))

but thought you might find it useful to know that causes stack overflow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions