{"action":"created","comment":{"url":"https://api.github.com/repos/getsentry/symbolic/pulls/comments/231941527","pull_request_review_id":173025061,"id":231941527,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTk0MTUyNw==","diff_hunk":"@@ -0,0 +1,196 @@\n+//! API to process Unreal Engine 4 crashes\n+#![warn(missing_docs)]\n+\n+extern crate byteorder;\n+extern crate bytes;\n+extern crate compress;\n+extern crate failure;\n+\n+use std::io::{self, Cursor, Read};\n+\n+use bytes::{Buf, Bytes};\n+use compress::zlib;\n+use failure::Fail;\n+\n+struct Header {\n+    pub directory_name: String,\n+    pub file_name: String,\n+    pub uncompressed_size: i32,\n+    pub file_count: i32,\n+}\n+\n+/// Meta-data about a file within a UE4 crash file\n+#[derive(Debug)]\n+pub struct CrashFileMeta {\n+    /// The original index within the UE4 crash file\n+    pub index: usize,\n+    /// File name\n+    pub file_name: String,\n+    /// Start of the file within crash dumb\n+    pub offset: usize,\n+    /// Length of bytes from offset\n+    pub len: usize,\n+}\n+\n+/// Errors related to parsing an UE4 crash file\n+#[derive(Fail, Debug)]\n+pub enum Unreal4ParseError {\n+    /// Expected UnrealEngine4 crash (zlib compressed)\n+    #[fail(display = \"unknown bytes format\")]\n+    UnknownBytesFormat,\n+    /// Value out of bounds\n+    #[fail(display = \"out of bounds\")]\n+    OutOfBounds,\n+    /// Invalid compressed data\n+    #[fail(display = \"bad compression\")]\n+    BadCompression(io::Error),\n+}\n+\n+/// Unreal Engine 4 crash file\n+#[derive(Debug)]\n+pub struct Unreal4Crash {\n+    bytes: Bytes,\n+    files: Vec<CrashFileMeta>,\n+}\n+\n+impl Unreal4Crash {\n+    /// Creates an instance of `Unreal4Crash` from the original, compressed bytes\n+    pub fn from_bytes(bytes: &[u8]) -> Result<Unreal4Crash, Unreal4ParseError> {","path":"unreal/src/lib.rs","position":58,"original_position":58,"commit_id":"747f5a66f531896a92c62cdc0cfe765ddc90750a","original_commit_id":"747f5a66f531896a92c62cdc0cfe765ddc90750a","user":{"login":"jan-auer","id":1433023,"node_id":"MDQ6VXNlcjE0MzMwMjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1433023?v=4","gravatar_id":"","url":"https://api.github.com/users/jan-auer","html_url":"https://github.com/jan-auer","followers_url":"https://api.github.com/users/jan-auer/followers","following_url":"https://api.github.com/users/jan-auer/following{/other_user}","gists_url":"https://api.github.com/users/jan-auer/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-auer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-auer/subscriptions","organizations_url":"https://api.github.com/users/jan-auer/orgs","repos_url":"https://api.github.com/users/jan-auer/repos","events_url":"https://api.github.com/users/jan-auer/events{/privacy}","received_events_url":"https://api.github.com/users/jan-auer/received_events","type":"User","site_admin":false},"body":"Then please rename to `_compressed` right away. ","created_at":"2018-11-08T15:46:13Z","updated_at":"2018-11-08T15:46:14Z","html_url":"https://github.com/getsentry/symbolic/pull/102#discussion_r231941527","pull_request_url":"https://api.github.com/repos/getsentry/symbolic/pulls/102","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/getsentry/symbolic/pulls/comments/231941527"},"html":{"href":"https://github.com/getsentry/symbolic/pull/102#discussion_r231941527"},"pull_request":{"href":"https://api.github.com/repos/getsentry/symbolic/pulls/102"}},"in_reply_to_id":231923731},"pull_request":{"url":"https://api.github.com/repos/getsentry/symbolic/pulls/102","id":228981489,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4OTgxNDg5","html_url":"https://github.com/getsentry/symbolic/pull/102","diff_url":"https://github.com/getsentry/symbolic/pull/102.diff","patch_url":"https://github.com/getsentry/symbolic/pull/102.patch","issue_url":"https://api.github.com/repos/getsentry/symbolic/issues/102","number":102,"state":"open","locked":false,"title":"WIP: feat: unreal engine crash","user":{"login":"bruno-garcia","id":1633368,"node_id":"MDQ6VXNlcjE2MzMzNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1633368?v=4","gravatar_id":"","url":"https://api.github.com/users/bruno-garcia","html_url":"https://github.com/bruno-garcia","followers_url":"https://api.github.com/users/bruno-garcia/followers","following_url":"https://api.github.com/users/bruno-garcia/following{/other_user}","gists_url":"https://api.github.com/users/bruno-garcia/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-garcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-garcia/subscriptions","organizations_url":"https://api.github.com/users/bruno-garcia/orgs","repos_url":"https://api.github.com/users/bruno-garcia/repos","events_url":"https://api.github.com/users/bruno-garcia/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-garcia/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-07T10:29:02Z","updated_at":"2018-11-08T15:46:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85eeae8d3c37b207ccfe29613c3fc927f374b5ec","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/getsentry/symbolic/pulls/102/commits","review_comments_url":"https://api.github.com/repos/getsentry/symbolic/pulls/102/comments","review_comment_url":"https://api.github.com/repos/getsentry/symbolic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getsentry/symbolic/issues/102/comments","statuses_url":"https://api.github.com/repos/getsentry/symbolic/statuses/747f5a66f531896a92c62cdc0cfe765ddc90750a","head":{"label":"getsentry:feature/unreal-engine-crash","ref":"feature/unreal-engine-crash","sha":"747f5a66f531896a92c62cdc0cfe765ddc90750a","user":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":102011536,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIwMTE1MzY=","name":"symbolic","full_name":"getsentry/symbolic","private":false,"owner":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/getsentry/symbolic","description":"Stack trace symbolication library written in Rust","fork":false,"url":"https://api.github.com/repos/getsentry/symbolic","forks_url":"https://api.github.com/repos/getsentry/symbolic/forks","keys_url":"https://api.github.com/repos/getsentry/symbolic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/symbolic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/symbolic/teams","hooks_url":"https://api.github.com/repos/getsentry/symbolic/hooks","issue_events_url":"https://api.github.com/repos/getsentry/symbolic/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/symbolic/events","assignees_url":"https://api.github.com/repos/getsentry/symbolic/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/symbolic/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/symbolic/tags","blobs_url":"https://api.github.com/repos/getsentry/symbolic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/symbolic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/symbolic/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/symbolic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/symbolic/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/symbolic/languages","stargazers_url":"https://api.github.com/repos/getsentry/symbolic/stargazers","contributors_url":"https://api.github.com/repos/getsentry/symbolic/contributors","subscribers_url":"https://api.github.com/repos/getsentry/symbolic/subscribers","subscription_url":"https://api.github.com/repos/getsentry/symbolic/subscription","commits_url":"https://api.github.com/repos/getsentry/symbolic/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/symbolic/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/symbolic/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/symbolic/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/symbolic/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/symbolic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/symbolic/merges","archive_url":"https://api.github.com/repos/getsentry/symbolic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/symbolic/downloads","issues_url":"https://api.github.com/repos/getsentry/symbolic/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/symbolic/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/symbolic/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/symbolic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/symbolic/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/symbolic/releases{/id}","deployments_url":"https://api.github.com/repos/getsentry/symbolic/deployments","created_at":"2017-08-31T14:48:11Z","updated_at":"2018-11-08T14:18:17Z","pushed_at":"2018-11-08T14:18:16Z","git_url":"git://github.com/getsentry/symbolic.git","ssh_url":"git@github.com:getsentry/symbolic.git","clone_url":"https://github.com/getsentry/symbolic.git","svn_url":"https://github.com/getsentry/symbolic","homepage":"https://github.com/getsentry/symbolic#readme","size":17724,"stargazers_count":48,"watchers_count":48,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":12,"open_issues":8,"watchers":48,"default_branch":"master"}},"base":{"label":"getsentry:master","ref":"master","sha":"9620c41dbfd51040600e1d02e2ce8243a8e60fc0","user":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":102011536,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIwMTE1MzY=","name":"symbolic","full_name":"getsentry/symbolic","private":false,"owner":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/getsentry/symbolic","description":"Stack trace symbolication library written in Rust","fork":false,"url":"https://api.github.com/repos/getsentry/symbolic","forks_url":"https://api.github.com/repos/getsentry/symbolic/forks","keys_url":"https://api.github.com/repos/getsentry/symbolic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/symbolic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/symbolic/teams","hooks_url":"https://api.github.com/repos/getsentry/symbolic/hooks","issue_events_url":"https://api.github.com/repos/getsentry/symbolic/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/symbolic/events","assignees_url":"https://api.github.com/repos/getsentry/symbolic/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/symbolic/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/symbolic/tags","blobs_url":"https://api.github.com/repos/getsentry/symbolic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/symbolic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/symbolic/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/symbolic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/symbolic/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/symbolic/languages","stargazers_url":"https://api.github.com/repos/getsentry/symbolic/stargazers","contributors_url":"https://api.github.com/repos/getsentry/symbolic/contributors","subscribers_url":"https://api.github.com/repos/getsentry/symbolic/subscribers","subscription_url":"https://api.github.com/repos/getsentry/symbolic/subscription","commits_url":"https://api.github.com/repos/getsentry/symbolic/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/symbolic/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/symbolic/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/symbolic/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/symbolic/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/symbolic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/symbolic/merges","archive_url":"https://api.github.com/repos/getsentry/symbolic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/symbolic/downloads","issues_url":"https://api.github.com/repos/getsentry/symbolic/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/symbolic/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/symbolic/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/symbolic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/symbolic/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/symbolic/releases{/id}","deployments_url":"https://api.github.com/repos/getsentry/symbolic/deployments","created_at":"2017-08-31T14:48:11Z","updated_at":"2018-11-08T14:18:17Z","pushed_at":"2018-11-08T14:18:16Z","git_url":"git://github.com/getsentry/symbolic.git","ssh_url":"git@github.com:getsentry/symbolic.git","clone_url":"https://github.com/getsentry/symbolic.git","svn_url":"https://github.com/getsentry/symbolic","homepage":"https://github.com/getsentry/symbolic#readme","size":17724,"stargazers_count":48,"watchers_count":48,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":12,"open_issues":8,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getsentry/symbolic/pulls/102"},"html":{"href":"https://github.com/getsentry/symbolic/pull/102"},"issue":{"href":"https://api.github.com/repos/getsentry/symbolic/issues/102"},"comments":{"href":"https://api.github.com/repos/getsentry/symbolic/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/getsentry/symbolic/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/getsentry/symbolic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getsentry/symbolic/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/getsentry/symbolic/statuses/747f5a66f531896a92c62cdc0cfe765ddc90750a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jan-auer"}}