{"action":"opened","issue":{"url":"https://api.github.com/repos/jtkukunas/zlib/issues/12","repository_url":"https://api.github.com/repos/jtkukunas/zlib","labels_url":"https://api.github.com/repos/jtkukunas/zlib/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jtkukunas/zlib/issues/12/comments","events_url":"https://api.github.com/repos/jtkukunas/zlib/issues/12/events","html_url":"https://github.com/jtkukunas/zlib/issues/12","id":138240740,"number":12,"title":"deflate error Z_BUF_ERROR for particular input data for compression level 1 only","user":{"login":"yanqi27","id":12787825,"avatar_url":"https://avatars.githubusercontent.com/u/12787825?v=3","gravatar_id":"","url":"https://api.github.com/users/yanqi27","html_url":"https://github.com/yanqi27","followers_url":"https://api.github.com/users/yanqi27/followers","following_url":"https://api.github.com/users/yanqi27/following{/other_user}","gists_url":"https://api.github.com/users/yanqi27/gists{/gist_id}","starred_url":"https://api.github.com/users/yanqi27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanqi27/subscriptions","organizations_url":"https://api.github.com/users/yanqi27/orgs","repos_url":"https://api.github.com/users/yanqi27/repos","events_url":"https://api.github.com/users/yanqi27/events{/privacy}","received_events_url":"https://api.github.com/users/yanqi27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T17:14:55Z","updated_at":"2016-03-03T17:14:55Z","closed_at":null,"body":"This seems related to issue 10. I tested branch \"issue10\" which doesn't solve the error. I could narrow down the issue to a small test. please see the attached code and binary input data. The following command will show the problem.\r\n`$a.out image_dd`\r\n`rc=Z_BUF_ERROR``\r\n`Failed` to compress the input file at offset 0x0`\r\n\r\n\r\n[zlib_bug.zip](https://github.com/jtkukunas/zlib/files/157273/zlib_bug.zip)"}}