{"action":"created","issue":{"url":"https://api.github.com/repos/driskell/log-courier/issues/188","labels_url":"https://api.github.com/repos/driskell/log-courier/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/driskell/log-courier/issues/188/comments","events_url":"https://api.github.com/repos/driskell/log-courier/issues/188/events","html_url":"https://github.com/driskell/log-courier/issues/188","id":87701384,"number":188,"title":"multiline codec causes log-courier to crash if a line is longer than \"max multiline bytes\"","user":{"login":"peterholak","id":6539114,"avatar_url":"https://avatars.githubusercontent.com/u/6539114?v=3","gravatar_id":"","url":"https://api.github.com/users/peterholak","html_url":"https://github.com/peterholak","followers_url":"https://api.github.com/users/peterholak/followers","following_url":"https://api.github.com/users/peterholak/following{/other_user}","gists_url":"https://api.github.com/users/peterholak/gists{/gist_id}","starred_url":"https://api.github.com/users/peterholak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterholak/subscriptions","organizations_url":"https://api.github.com/users/peterholak/orgs","repos_url":"https://api.github.com/users/peterholak/repos","events_url":"https://api.github.com/users/peterholak/events{/privacy}","received_events_url":"https://api.github.com/users/peterholak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driskell/log-courier/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"driskell","id":939815,"avatar_url":"https://avatars.githubusercontent.com/u/939815?v=3","gravatar_id":"","url":"https://api.github.com/users/driskell","html_url":"https://github.com/driskell","followers_url":"https://api.github.com/users/driskell/followers","following_url":"https://api.github.com/users/driskell/following{/other_user}","gists_url":"https://api.github.com/users/driskell/gists{/gist_id}","starred_url":"https://api.github.com/users/driskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskell/subscriptions","organizations_url":"https://api.github.com/users/driskell/orgs","repos_url":"https://api.github.com/users/driskell/repos","events_url":"https://api.github.com/users/driskell/events{/privacy}","received_events_url":"https://api.github.com/users/driskell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/driskell/log-courier/milestones/13","html_url":"https://github.com/driskell/log-courier/milestones/1.8","labels_url":"https://api.github.com/repos/driskell/log-courier/milestones/13/labels","id":1148313,"number":13,"title":"1.8","description":"","creator":{"login":"driskell","id":939815,"avatar_url":"https://avatars.githubusercontent.com/u/939815?v=3","gravatar_id":"","url":"https://api.github.com/users/driskell","html_url":"https://github.com/driskell","followers_url":"https://api.github.com/users/driskell/followers","following_url":"https://api.github.com/users/driskell/following{/other_user}","gists_url":"https://api.github.com/users/driskell/gists{/gist_id}","starred_url":"https://api.github.com/users/driskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskell/subscriptions","organizations_url":"https://api.github.com/users/driskell/orgs","repos_url":"https://api.github.com/users/driskell/repos","events_url":"https://api.github.com/users/driskell/events{/privacy}","received_events_url":"https://api.github.com/users/driskell/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"open","created_at":"2015-06-03T21:14:52Z","updated_at":"2015-08-05T16:21:46Z","due_on":"2015-08-06T23:00:00Z","closed_at":null},"comments":8,"created_at":"2015-06-12T11:33:32Z","updated_at":"2015-08-05T16:21:46Z","closed_at":"2015-08-05T16:21:46Z","body":"It crashes on\r\n```go\r\nc.buffer = append(c.buffer, text[:cut])\r\n```\r\nwith `panic: runtime error: slice bounds out of range` because `cut` ends up being a negative number on the next log line.\r\n\r\nFrom the TODO at the end of the function I see that splitting lines that are too long is not supported yet, however it would be better if the event simply got discarded in such a case (which in my case usually means some corrupted log file) and log-courier kept going instead of crashing.\r\n\r\nTested with `\"what\": \"next\"`"},"comment":{"url":"https://api.github.com/repos/driskell/log-courier/issues/comments/128057035","html_url":"https://github.com/driskell/log-courier/issues/188#issuecomment-128057035","issue_url":"https://api.github.com/repos/driskell/log-courier/issues/188","id":128057035,"user":{"login":"driskell","id":939815,"avatar_url":"https://avatars.githubusercontent.com/u/939815?v=3","gravatar_id":"","url":"https://api.github.com/users/driskell","html_url":"https://github.com/driskell","followers_url":"https://api.github.com/users/driskell/followers","following_url":"https://api.github.com/users/driskell/following{/other_user}","gists_url":"https://api.github.com/users/driskell/gists{/gist_id}","starred_url":"https://api.github.com/users/driskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskell/subscriptions","organizations_url":"https://api.github.com/users/driskell/orgs","repos_url":"https://api.github.com/users/driskell/repos","events_url":"https://api.github.com/users/driskell/events{/privacy}","received_events_url":"https://api.github.com/users/driskell/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T16:21:46Z","updated_at":"2015-08-05T16:21:46Z","body":"I'll close this now. I can do the improvements to code later in the background as I don't have much time for it before 1.8 and need to concentrate on 2.0"}}