{"action":"created","issue":{"url":"https://api.github.com/repos/abraidwood/minilzo-js/issues/1","labels_url":"https://api.github.com/repos/abraidwood/minilzo-js/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/abraidwood/minilzo-js/issues/1/comments","events_url":"https://api.github.com/repos/abraidwood/minilzo-js/issues/1/events","html_url":"https://github.com/abraidwood/minilzo-js/issues/1","id":90317461,"number":1,"title":"Wrong result after decompression.","user":{"login":"fengdh","id":4262924,"avatar_url":"https://avatars.githubusercontent.com/u/4262924?v=3","gravatar_id":"","url":"https://api.github.com/users/fengdh","html_url":"https://github.com/fengdh","followers_url":"https://api.github.com/users/fengdh/followers","following_url":"https://api.github.com/users/fengdh/following{/other_user}","gists_url":"https://api.github.com/users/fengdh/gists{/gist_id}","starred_url":"https://api.github.com/users/fengdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengdh/subscriptions","organizations_url":"https://api.github.com/users/fengdh/orgs","repos_url":"https://api.github.com/users/fengdh/repos","events_url":"https://api.github.com/users/fengdh/events{/privacy}","received_events_url":"https://api.github.com/users/fengdh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T07:57:14Z","updated_at":"2015-06-24T07:26:57Z","closed_at":null,"body":"In order to decompress LZO compressed file inside browser, I have forked your minilzo-js to accept and output data in Uint8Array for decompression. It works well except fail on a small part of my test data (among 73 data, only 2 failed).\r\n\r\nYou can view my work on https://github.com/fengdh/minilzo-decompress.js, including a sample LZO compressed binary data file which will produce a wrong result (expecting size of 32754, not 32737). Here is an online demo on jsbin (http://jsbin.com/xuqona/edit?html,js,console,output). You have to download lzo_compressed_sample.data file first and choose it from local, then view result as console output .\r\n\r\nWould you help me to figure out the problem? Thank you.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/abraidwood/minilzo-js/issues/comments/114762186","html_url":"https://github.com/abraidwood/minilzo-js/issues/1#issuecomment-114762186","issue_url":"https://api.github.com/repos/abraidwood/minilzo-js/issues/1","id":114762186,"user":{"login":"fengdh","id":4262924,"avatar_url":"https://avatars.githubusercontent.com/u/4262924?v=3","gravatar_id":"","url":"https://api.github.com/users/fengdh","html_url":"https://github.com/fengdh","followers_url":"https://api.github.com/users/fengdh/followers","following_url":"https://api.github.com/users/fengdh/following{/other_user}","gists_url":"https://api.github.com/users/fengdh/gists{/gist_id}","starred_url":"https://api.github.com/users/fengdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengdh/subscriptions","organizations_url":"https://api.github.com/users/fengdh/orgs","repos_url":"https://api.github.com/users/fengdh/repos","events_url":"https://api.github.com/users/fengdh/events{/privacy}","received_events_url":"https://api.github.com/users/fengdh/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T07:26:57Z","updated_at":"2015-06-24T07:26:57Z","body":"Thanks for your reply.\r\n\r\nResponse to your question:\r\n\r\n  1. Most of files (71 out 73) are decompressed as expected with minilzo.js, but only 2 files failed. Your version of decompress function takes string as input/output, so I have to modified it to work on data in Uint8Array. My port should have no significant changes inside body of decompress() function.\r\n\r\n 2. I did not compress those files, which are LZO compressed data blocks extracted from a dictionary file (*.mdx of MDict). It must be compressed correctly with C library, since the MDict Viewer can handle it well. I guess maybe there is a minor bug inside decompress() function. "}}