Closed nst closed 8 years ago
Steps to reproduce
Run JSONFromString() with the following Swift strings as input:
" " "[0," "{\"\":"
Expected behavior
Since these strings are invalid JSON according to RFC 7159, JSONFromString() should throw an error.
Actual behavior
JSONFromString() does crash.
Please add a backtrace for the crash and include the version in use.
Not necessary in this case - crash is trivially reproducible on master; fixed in #200. Thanks @nst!
master
:+1: Thanks @jgallagher & @nst.
Steps to reproduce
Run JSONFromString() with the following Swift strings as input:
Expected behavior
Since these strings are invalid JSON according to RFC 7159, JSONFromString() should throw an error.
Actual behavior
JSONFromString() does crash.