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

PushbackReader overflow with LineNumberingPushbackReader #85

Closed
borkdude opened this issue Nov 21, 2021 · 1 comment
Closed

PushbackReader overflow with LineNumberingPushbackReader #85

borkdude opened this issue Nov 21, 2021 · 1 comment

Comments

@borkdude
Copy link
Owner

user=> (core/parse-next (core/reader (slurp "/tmp/try.cljs")))
(defn hash "Returns the hash code of its argument. Note this is the hash code\n   consistent with =." [o] (cond (implements? IHash o) (bit-xor (-hash o) 0) (number? o) (if (js/isFinite o) (js-mod (Math/floor o) 2147483647) (case o ##Inf 2146435072 ##-Inf -1048576 2146959360)) (true? o) 1231 (false? o) 1237 (string? o) (m3-hash-int (hash-string o)) (instance? js/Date o) (bit-xor (.valueOf o) 0) (nil? o) 0 :else (bit-xor (-hash o) 0)))
user=> (core/parse-next (clojure.lang.LineNumberingPushbackReader. (java.io.PushbackReader. ((requiring-resolve 'clojure.java.io/reader) "/tmp/try.cljs"))))
Execution error (IOException) at java.io.PushbackReader/unread (PushbackReader.java:156).
Pushback buffer overflow
@borkdude
Copy link
Owner Author

Smallest repro: ##Inf

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