Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack overflow #196

Open
jeffmad opened this issue Jun 3, 2017 · 0 comments
Open

stack overflow #196

jeffmad opened this issue Jun 3, 2017 · 0 comments

Comments

@jeffmad
Copy link

jeffmad commented Jun 3, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant