This repository has been archived by the owner. It is now read-only.

JSONFromString() does crash on certain inputs. #206

Closed
nst opened this Issue Sep 7, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@nst

nst commented Sep 7, 2016

Step to reproduce

Run JSONFromString() with the following Swift string as input:

"[\"\\"

Expected behavior

Since this strings is invalid JSON according to RFC 7159, JSONFromString() should throw an error.

Actual behavior

JSONFromString() does crash.

@jgallagher

This comment has been minimized.

Show comment
Hide comment
@jgallagher

jgallagher Jan 18, 2017

Contributor

Fixed by #216.

Contributor

jgallagher commented Jan 18, 2017

Fixed by #216.

@jgallagher jgallagher closed this Jan 18, 2017

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