{"action":"closed","number":185,"pull_request":{"url":"https://api.github.com/repos/Cyan4973/lz4/pulls/185","id":59261255,"html_url":"https://github.com/Cyan4973/lz4/pull/185","diff_url":"https://github.com/Cyan4973/lz4/pull/185.diff","patch_url":"https://github.com/Cyan4973/lz4/pull/185.patch","issue_url":"https://api.github.com/repos/Cyan4973/lz4/issues/185","number":185,"state":"closed","locked":false,"title":"Add support for safe in-place decoding","user":{"login":"jwerner-chromium","id":17071764,"avatar_url":"https://avatars.githubusercontent.com/u/17071764?v=3","gravatar_id":"","url":"https://api.github.com/users/jwerner-chromium","html_url":"https://github.com/jwerner-chromium","followers_url":"https://api.github.com/users/jwerner-chromium/followers","following_url":"https://api.github.com/users/jwerner-chromium/following{/other_user}","gists_url":"https://api.github.com/users/jwerner-chromium/gists{/gist_id}","starred_url":"https://api.github.com/users/jwerner-chromium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwerner-chromium/subscriptions","organizations_url":"https://api.github.com/users/jwerner-chromium/orgs","repos_url":"https://api.github.com/users/jwerner-chromium/repos","events_url":"https://api.github.com/users/jwerner-chromium/events{/privacy}","received_events_url":"https://api.github.com/users/jwerner-chromium/received_events","type":"User","site_admin":false},"body":"I'm trying to import LZ4 code into the coreboot.org open source firmware project. We work in an environment with very tight memory and I want to use LZ4 for in-place decompression (where you load the compressed input at the end of the output buffer so that it will overwrite itself during decompression).\r\n\r\nThis should work in the vast majority of cases as long as the output buffer is at least a few bytes larger than the actual output data, but it is important for us to reliably detect whether it worked or not (rather than risking corrupted output data). I think the small extra check added with this patch should be all that's needed... please let me know if I'm overlooking something.","created_at":"2016-02-13T07:12:15Z","updated_at":"2016-02-16T21:29:10Z","closed_at":"2016-02-16T21:29:10Z","merged_at":"2016-02-16T21:29:10Z","merge_commit_sha":"d430e64f12c065f2979787a541f8cffbea257af9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cyan4973/lz4/pulls/185/commits","review_comments_url":"https://api.github.com/repos/Cyan4973/lz4/pulls/185/comments","review_comment_url":"https://api.github.com/repos/Cyan4973/lz4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cyan4973/lz4/issues/185/comments","statuses_url":"https://api.github.com/repos/Cyan4973/lz4/statuses/dc868cd5b1bc2c68405732fe080b7b0e5dff0cca","head":{"label":"jwerner-chromium:dev","ref":"dev","sha":"dc868cd5b1bc2c68405732fe080b7b0e5dff0cca","user":{"login":"jwerner-chromium","id":17071764,"avatar_url":"https://avatars.githubusercontent.com/u/17071764?v=3","gravatar_id":"","url":"https://api.github.com/users/jwerner-chromium","html_url":"https://github.com/jwerner-chromium","followers_url":"https://api.github.com/users/jwerner-chromium/followers","following_url":"https://api.github.com/users/jwerner-chromium/following{/other_user}","gists_url":"https://api.github.com/users/jwerner-chromium/gists{/gist_id}","starred_url":"https://api.github.com/users/jwerner-chromium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwerner-chromium/subscriptions","organizations_url":"https://api.github.com/users/jwerner-chromium/orgs","repos_url":"https://api.github.com/users/jwerner-chromium/repos","events_url":"https://api.github.com/users/jwerner-chromium/events{/privacy}","received_events_url":"https://api.github.com/users/jwerner-chromium/received_events","type":"User","site_admin":false},"repo":{"id":51618674,"name":"lz4","full_name":"jwerner-chromium/lz4","owner":{"login":"jwerner-chromium","id":17071764,"avatar_url":"https://avatars.githubusercontent.com/u/17071764?v=3","gravatar_id":"","url":"https://api.github.com/users/jwerner-chromium","html_url":"https://github.com/jwerner-chromium","followers_url":"https://api.github.com/users/jwerner-chromium/followers","following_url":"https://api.github.com/users/jwerner-chromium/following{/other_user}","gists_url":"https://api.github.com/users/jwerner-chromium/gists{/gist_id}","starred_url":"https://api.github.com/users/jwerner-chromium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwerner-chromium/subscriptions","organizations_url":"https://api.github.com/users/jwerner-chromium/orgs","repos_url":"https://api.github.com/users/jwerner-chromium/repos","events_url":"https://api.github.com/users/jwerner-chromium/events{/privacy}","received_events_url":"https://api.github.com/users/jwerner-chromium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwerner-chromium/lz4","description":"Extremely Fast Compression algorithm","fork":true,"url":"https://api.github.com/repos/jwerner-chromium/lz4","forks_url":"https://api.github.com/repos/jwerner-chromium/lz4/forks","keys_url":"https://api.github.com/repos/jwerner-chromium/lz4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwerner-chromium/lz4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwerner-chromium/lz4/teams","hooks_url":"https://api.github.com/repos/jwerner-chromium/lz4/hooks","issue_events_url":"https://api.github.com/repos/jwerner-chromium/lz4/issues/events{/number}","events_url":"https://api.github.com/repos/jwerner-chromium/lz4/events","assignees_url":"https://api.github.com/repos/jwerner-chromium/lz4/assignees{/user}","branches_url":"https://api.github.com/repos/jwerner-chromium/lz4/branches{/branch}","tags_url":"https://api.github.com/repos/jwerner-chromium/lz4/tags","blobs_url":"https://api.github.com/repos/jwerner-chromium/lz4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwerner-chromium/lz4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwerner-chromium/lz4/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwerner-chromium/lz4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwerner-chromium/lz4/statuses/{sha}","languages_url":"https://api.github.com/repos/jwerner-chromium/lz4/languages","stargazers_url":"https://api.github.com/repos/jwerner-chromium/lz4/stargazers","contributors_url":"https://api.github.com/repos/jwerner-chromium/lz4/contributors","subscribers_url":"https://api.github.com/repos/jwerner-chromium/lz4/subscribers","subscription_url":"https://api.github.com/repos/jwerner-chromium/lz4/subscription","commits_url":"https://api.github.com/repos/jwerner-chromium/lz4/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwerner-chromium/lz4/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwerner-chromium/lz4/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwerner-chromium/lz4/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwerner-chromium/lz4/contents/{+path}","compare_url":"https://api.github.com/repos/jwerner-chromium/lz4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwerner-chromium/lz4/merges","archive_url":"https://api.github.com/repos/jwerner-chromium/lz4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwerner-chromium/lz4/downloads","issues_url":"https://api.github.com/repos/jwerner-chromium/lz4/issues{/number}","pulls_url":"https://api.github.com/repos/jwerner-chromium/lz4/pulls{/number}","milestones_url":"https://api.github.com/repos/jwerner-chromium/lz4/milestones{/number}","notifications_url":"https://api.github.com/repos/jwerner-chromium/lz4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwerner-chromium/lz4/labels{/name}","releases_url":"https://api.github.com/repos/jwerner-chromium/lz4/releases{/id}","deployments_url":"https://api.github.com/repos/jwerner-chromium/lz4/deployments","created_at":"2016-02-12T21:47:25Z","updated_at":"2016-02-12T21:47:26Z","pushed_at":"2016-02-13T06:57:39Z","git_url":"git://github.com/jwerner-chromium/lz4.git","ssh_url":"git@github.com:jwerner-chromium/lz4.git","clone_url":"https://github.com/jwerner-chromium/lz4.git","svn_url":"https://github.com/jwerner-chromium/lz4","homepage":"http://www.lz4.org","size":2388,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Cyan4973:dev","ref":"dev","sha":"ad564c872089f61f1142c3544b9fd140093bd162","user":{"login":"Cyan4973","id":750081,"avatar_url":"https://avatars.githubusercontent.com/u/750081?v=3","gravatar_id":"","url":"https://api.github.com/users/Cyan4973","html_url":"https://github.com/Cyan4973","followers_url":"https://api.github.com/users/Cyan4973/followers","following_url":"https://api.github.com/users/Cyan4973/following{/other_user}","gists_url":"https://api.github.com/users/Cyan4973/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyan4973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyan4973/subscriptions","organizations_url":"https://api.github.com/users/Cyan4973/orgs","repos_url":"https://api.github.com/users/Cyan4973/repos","events_url":"https://api.github.com/users/Cyan4973/events{/privacy}","received_events_url":"https://api.github.com/users/Cyan4973/received_events","type":"User","site_admin":false},"repo":{"id":18106269,"name":"lz4","full_name":"Cyan4973/lz4","owner":{"login":"Cyan4973","id":750081,"avatar_url":"https://avatars.githubusercontent.com/u/750081?v=3","gravatar_id":"","url":"https://api.github.com/users/Cyan4973","html_url":"https://github.com/Cyan4973","followers_url":"https://api.github.com/users/Cyan4973/followers","following_url":"https://api.github.com/users/Cyan4973/following{/other_user}","gists_url":"https://api.github.com/users/Cyan4973/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyan4973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyan4973/subscriptions","organizations_url":"https://api.github.com/users/Cyan4973/orgs","repos_url":"https://api.github.com/users/Cyan4973/repos","events_url":"https://api.github.com/users/Cyan4973/events{/privacy}","received_events_url":"https://api.github.com/users/Cyan4973/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cyan4973/lz4","description":"Extremely Fast Compression algorithm","fork":false,"url":"https://api.github.com/repos/Cyan4973/lz4","forks_url":"https://api.github.com/repos/Cyan4973/lz4/forks","keys_url":"https://api.github.com/repos/Cyan4973/lz4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cyan4973/lz4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cyan4973/lz4/teams","hooks_url":"https://api.github.com/repos/Cyan4973/lz4/hooks","issue_events_url":"https://api.github.com/repos/Cyan4973/lz4/issues/events{/number}","events_url":"https://api.github.com/repos/Cyan4973/lz4/events","assignees_url":"https://api.github.com/repos/Cyan4973/lz4/assignees{/user}","branches_url":"https://api.github.com/repos/Cyan4973/lz4/branches{/branch}","tags_url":"https://api.github.com/repos/Cyan4973/lz4/tags","blobs_url":"https://api.github.com/repos/Cyan4973/lz4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cyan4973/lz4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cyan4973/lz4/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cyan4973/lz4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cyan4973/lz4/statuses/{sha}","languages_url":"https://api.github.com/repos/Cyan4973/lz4/languages","stargazers_url":"https://api.github.com/repos/Cyan4973/lz4/stargazers","contributors_url":"https://api.github.com/repos/Cyan4973/lz4/contributors","subscribers_url":"https://api.github.com/repos/Cyan4973/lz4/subscribers","subscription_url":"https://api.github.com/repos/Cyan4973/lz4/subscription","commits_url":"https://api.github.com/repos/Cyan4973/lz4/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cyan4973/lz4/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cyan4973/lz4/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cyan4973/lz4/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cyan4973/lz4/contents/{+path}","compare_url":"https://api.github.com/repos/Cyan4973/lz4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cyan4973/lz4/merges","archive_url":"https://api.github.com/repos/Cyan4973/lz4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cyan4973/lz4/downloads","issues_url":"https://api.github.com/repos/Cyan4973/lz4/issues{/number}","pulls_url":"https://api.github.com/repos/Cyan4973/lz4/pulls{/number}","milestones_url":"https://api.github.com/repos/Cyan4973/lz4/milestones{/number}","notifications_url":"https://api.github.com/repos/Cyan4973/lz4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cyan4973/lz4/labels{/name}","releases_url":"https://api.github.com/repos/Cyan4973/lz4/releases{/id}","deployments_url":"https://api.github.com/repos/Cyan4973/lz4/deployments","created_at":"2014-03-25T15:52:21Z","updated_at":"2016-02-16T01:34:31Z","pushed_at":"2016-02-16T21:29:10Z","git_url":"git://github.com/Cyan4973/lz4.git","ssh_url":"git@github.com:Cyan4973/lz4.git","clone_url":"https://github.com/Cyan4973/lz4.git","svn_url":"https://github.com/Cyan4973/lz4","homepage":"http://www.lz4.org","size":2996,"stargazers_count":1026,"watchers_count":1026,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":204,"mirror_url":null,"open_issues_count":22,"forks":204,"open_issues":22,"watchers":1026,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cyan4973/lz4/pulls/185"},"html":{"href":"https://github.com/Cyan4973/lz4/pull/185"},"issue":{"href":"https://api.github.com/repos/Cyan4973/lz4/issues/185"},"comments":{"href":"https://api.github.com/repos/Cyan4973/lz4/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/Cyan4973/lz4/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/Cyan4973/lz4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cyan4973/lz4/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/Cyan4973/lz4/statuses/dc868cd5b1bc2c68405732fe080b7b0e5dff0cca"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Cyan4973","id":750081,"avatar_url":"https://avatars.githubusercontent.com/u/750081?v=3","gravatar_id":"","url":"https://api.github.com/users/Cyan4973","html_url":"https://github.com/Cyan4973","followers_url":"https://api.github.com/users/Cyan4973/followers","following_url":"https://api.github.com/users/Cyan4973/following{/other_user}","gists_url":"https://api.github.com/users/Cyan4973/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyan4973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyan4973/subscriptions","organizations_url":"https://api.github.com/users/Cyan4973/orgs","repos_url":"https://api.github.com/users/Cyan4973/repos","events_url":"https://api.github.com/users/Cyan4973/events{/privacy}","received_events_url":"https://api.github.com/users/Cyan4973/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":79,"deletions":76,"changed_files":12}}