{"action":"created","issue":{"url":"https://api.github.com/repos/rksm/paredit.js/issues/4","labels_url":"https://api.github.com/repos/rksm/paredit.js/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rksm/paredit.js/issues/4/comments","events_url":"https://api.github.com/repos/rksm/paredit.js/issues/4/events","html_url":"https://github.com/rksm/paredit.js/issues/4","id":93827940,"number":4,"title":"Parsing really big s-expressions causes endless loop","user":{"login":"sjlevine","id":3143155,"avatar_url":"https://avatars.githubusercontent.com/u/3143155?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlevine","html_url":"https://github.com/sjlevine","followers_url":"https://api.github.com/users/sjlevine/followers","following_url":"https://api.github.com/users/sjlevine/following{/other_user}","gists_url":"https://api.github.com/users/sjlevine/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlevine/subscriptions","organizations_url":"https://api.github.com/users/sjlevine/orgs","repos_url":"https://api.github.com/users/sjlevine/repos","events_url":"https://api.github.com/users/sjlevine/events{/privacy}","received_events_url":"https://api.github.com/users/sjlevine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T16:08:13Z","updated_at":"2015-07-19T12:23:19Z","closed_at":"2015-07-15T00:57:49Z","body":"Hi again,\r\n\r\n@tvaquero and I seem to have found a bug in `paredit.js` where parsing a really large s-expression causes this error:\r\n```\r\nUncaught Error: endless loop at\r\n{\"idx\":71391,\"column\":1,\"row\"2501}\r\n```\r\n\r\nI haven't had time to delve deeper, but wanted to make you aware of it!\r\n\r\nI would upload a test file that is causing this crash, but I can't seem to figure out how to do that on github. So, here's a quick Python script (`big.py`) that, when run, outputs a a 3000-line or so Lisp file (`big.lisp`) that exhibits the above problem.\r\n\r\n```\r\n#!/usr/bin/env python\r\nN = 3000\r\nprint \"(in-package :cl-user)\"\r\nprint \"\"\r\nprint \"(defmethod really-big-function ()\"\r\nfor i in range(N):\r\n    print \"  (do-something-else 'i{})\".format(i)\r\nprint \"  (finally-the-end))\"\r\n```\r\nThen you can run it with:\r\n```\r\npython big.py > big.lisp\r\n```\r\n\r\nIf you try and parse the resulting `big.lisp` file, you should see the error.\r\n\r\nThanks again for your hard work on this library; it is much appreciated!"},"comment":{"url":"https://api.github.com/repos/rksm/paredit.js/issues/comments/122656041","html_url":"https://github.com/rksm/paredit.js/issues/4#issuecomment-122656041","issue_url":"https://api.github.com/repos/rksm/paredit.js/issues/4","id":122656041,"user":{"login":"sjlevine","id":3143155,"avatar_url":"https://avatars.githubusercontent.com/u/3143155?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlevine","html_url":"https://github.com/sjlevine","followers_url":"https://api.github.com/users/sjlevine/followers","following_url":"https://api.github.com/users/sjlevine/following{/other_user}","gists_url":"https://api.github.com/users/sjlevine/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlevine/subscriptions","organizations_url":"https://api.github.com/users/sjlevine/orgs","repos_url":"https://api.github.com/users/sjlevine/repos","events_url":"https://api.github.com/users/sjlevine/events{/privacy}","received_events_url":"https://api.github.com/users/sjlevine/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T12:23:19Z","updated_at":"2015-07-19T12:23:19Z","body":"Thanks so much!"}}