mfikes / ambly

ClojureScript REPL into embedded JavaScriptCore
http://ambly.fikesfarm.com
Eclipse Public License 1.0
541 stars 21 forks source link

Can crash iOS side with "absurd length" #46

Closed mfikes closed 9 years ago

mfikes commented 9 years ago
  1. Add [org.clojure/core.logic "0.8.8"] to project.clj :dependencies
  2. Start up script/jscrepljs
  3. (require 'cljs.core.logic)
  4. (ns-interns 'cljs.core.logic)

You will be rewarded with a crash:

2015-02-20 21:01:07.351 Ambly Demo[6849:918387] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSConcreteMutableData initWithBytes:length:copy:deallocator:]: absurd length: 4294964216, maximum size: 2147483648 bytes'
*** First throw call stack:
(0x2a173137 0x38253c77 0x2a17307d 0x2ae76edf 0x2ae694ef 0x2ae6949b 0x2ae8ed8f 0xd49b7 0xd4e0d 0x2a0e94c7 0x2a0e9421 0x2a13923f 0x2a138653 0x2a136cd1 0x2a082a31 0x2a082843 0x31a2e1a9 0x2d9c560d 0xd6b69 0x3881faaf)
libc++abi.dylib: terminating with uncaught exception of type NSException